// Lean compiler output
// Module: Lean.Meta.Tactic.Grind.Order.StructId
// Imports: public import Lean.Meta.Tactic.Grind.Order.Types import Lean.Meta.Tactic.Grind.OrderInsts import Lean.Meta.Tactic.Grind.Arith.CommRing.RingId import Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommRingM
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__0;
size_t lean_usize_shift_right(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg(lean_object*, lean_object*);
uint8_t lean_usize_dec_le(size_t, size_t);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__4;
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
size_t lean_uint64_to_usize(uint64_t);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__0(lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_mkIsLinearPreorderInst_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_mul(size_t, size_t);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__3;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10;
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_fget_borrowed(lean_object*, lean_object*);
lean_object* l_Lean_Meta_getDecLevel_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg(lean_object*, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__0;
extern lean_object* l_Lean_Meta_Grind_Order_orderExt;
lean_object* l_Lean_Meta_Grind_getConfig___redArg(lean_object*);
static size_t l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Order_getStructId_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__2;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static size_t l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__0;
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__1;
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__9;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_internalizeFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_instInhabitedExpr;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8;
lean_object* l_Lean_Meta_Grind_mkIsPreorderInst_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_mkLawfulOrderLTInst_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_usize_to_nat(size_t);
uint8_t l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_mkIsPartialOrderInst_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3;
lean_object* lean_array_fget(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__12;
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___redArg(size_t, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_mkCollisionNode___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__6;
lean_object* lean_panic_fn(lean_object*, lean_object*);
static lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___closed__0;
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_internalizeFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg___boxed(lean_object*, lean_object*);
size_t lean_usize_sub(size_t, size_t);
lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(lean_object*);
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr1(lean_object*);
lean_object* l_Lean_Meta_Grind_shareCommon___redArg(lean_object*, lean_object*);
size_t lean_usize_shift_left(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_grind_canon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Order_getStructId_x3f___lam__0(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Order_getStructId_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_Order_get_x27___redArg(lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13;
lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__7;
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint64_t l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(lean_object*);
lean_object* l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at___00__private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f_spec__0(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_land(size_t, size_t);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_11; 
lean_inc(x_5);
x_11 = lean_grind_canon(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec_ref(x_11);
x_13 = l_Lean_Meta_Grind_shareCommon___redArg(x_12, x_5);
lean_dec(x_5);
return x_13;
}
else
{
lean_dec(x_5);
return x_11;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_11;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_internalizeFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_11; 
x_11 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_11;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_internalizeFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_internalizeFn(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_11;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_9 = lean_box(0);
x_10 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_10, 0, x_2);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_mkConst(x_1, x_10);
x_12 = l_Lean_Expr_app___override(x_11, x_3);
x_13 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_12, x_4, x_5, x_6, x_7);
return x_13;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_13; 
x_13 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_1, x_2, x_3, x_8, x_9, x_10, x_11);
return x_13;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_13;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
return x_9;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("OrderedRing", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Grind", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__2;
x_2 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__1;
x_3 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_12 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__3;
x_13 = lean_box(0);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_1);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_mkConst(x_12, x_14);
x_16 = l_Lean_mkApp5(x_15, x_2, x_3, x_4, x_5, x_6);
x_17 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_16, x_7, x_8, x_9, x_10);
return x_17;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_16; 
x_16 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_12, x_13, x_14);
return x_16;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
_start:
{
lean_object* x_16; 
x_16 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec(x_7);
return x_16;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
LEAN_EXPORT lean_object* l_panic___at___00__private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_instInhabitedExpr;
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_array_push(x_4, x_1);
lean_ctor_set(x_2, 0, x_5);
return x_2;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
x_8 = lean_ctor_get(x_2, 2);
x_9 = lean_ctor_get(x_2, 3);
x_10 = lean_ctor_get(x_2, 4);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_dec(x_2);
x_11 = lean_array_push(x_6, x_1);
x_12 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
lean_ctor_set(x_12, 2, x_8);
lean_ctor_set(x_12, 3, x_9);
lean_ctor_set(x_12, 4, x_10);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_12);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("LE", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("LT", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__2;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("le", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__4;
x_2 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__6;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__6;
x_4 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__7;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__9;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Meta_Grind_Order_orderExt;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("lt", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__12;
x_2 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__2;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_11; 
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
x_11 = l_Lean_Meta_getDecLevel_x3f(x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; 
x_13 = lean_ctor_get(x_11, 0);
if (lean_obj_tag(x_13) == 1)
{
uint8_t x_14; 
lean_free_object(x_11);
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__1;
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
lean_inc(x_15);
x_17 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_16, x_15, x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; 
x_19 = lean_ctor_get(x_17, 0);
if (lean_obj_tag(x_19) == 1)
{
lean_object* x_20; lean_object* x_21; 
lean_free_object(x_17);
x_20 = lean_ctor_get(x_19, 0);
lean_inc(x_20);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_19);
lean_inc_ref(x_1);
lean_inc(x_15);
x_21 = l_Lean_Meta_Grind_mkIsPreorderInst_x3f___redArg(x_15, x_1, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_21) == 0)
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_21);
if (x_22 == 0)
{
lean_object* x_23; 
x_23 = lean_ctor_get(x_21, 0);
if (lean_obj_tag(x_23) == 1)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
lean_free_object(x_21);
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 x_25 = x_23;
} else {
 lean_dec_ref(x_23);
 x_25 = lean_box(0);
}
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_19);
lean_inc_ref(x_1);
lean_inc(x_15);
x_26 = l_Lean_Meta_Grind_mkIsPartialOrderInst_x3f___redArg(x_15, x_1, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
lean_dec_ref(x_26);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_19);
lean_inc_ref(x_1);
lean_inc(x_15);
x_28 = l_Lean_Meta_Grind_mkIsLinearPreorderInst_x3f___redArg(x_15, x_1, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
lean_dec_ref(x_28);
x_30 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3;
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
lean_inc(x_15);
x_31 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_30, x_15, x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_31) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
lean_dec_ref(x_31);
x_33 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5;
x_34 = lean_box(0);
lean_inc(x_15);
x_35 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_35, 0, x_15);
lean_ctor_set(x_35, 1, x_34);
lean_inc_ref(x_35);
x_36 = l_Lean_mkConst(x_33, x_35);
lean_inc(x_20);
lean_inc_ref(x_1);
x_37 = l_Lean_mkAppB(x_36, x_1, x_20);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_38 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
x_39 = lean_ctor_get(x_38, 0);
lean_inc(x_39);
lean_dec_ref(x_38);
if (lean_obj_tag(x_32) == 1)
{
lean_object* x_79; lean_object* x_80; 
x_79 = lean_ctor_get(x_32, 0);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_32);
lean_inc_ref(x_1);
lean_inc(x_15);
x_80 = l_Lean_Meta_Grind_mkLawfulOrderLTInst_x3f___redArg(x_15, x_1, x_32, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_80) == 0)
{
lean_object* x_81; 
x_81 = lean_ctor_get(x_80, 0);
lean_inc(x_81);
lean_dec_ref(x_80);
if (lean_obj_tag(x_81) == 0)
{
lean_dec_ref(x_35);
lean_free_object(x_13);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_71 = x_81;
x_72 = x_81;
x_73 = x_2;
x_74 = x_8;
x_75 = lean_box(0);
goto block_78;
}
else
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_82 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13;
x_83 = l_Lean_mkConst(x_82, x_35);
lean_inc(x_79);
lean_inc_ref(x_1);
x_84 = l_Lean_mkAppB(x_83, x_1, x_79);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_85 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_85) == 0)
{
lean_object* x_86; lean_object* x_87; 
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
lean_dec_ref(x_85);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_87 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_87) == 0)
{
lean_object* x_88; uint8_t x_89; uint8_t x_90; 
x_88 = lean_ctor_get(x_87, 0);
lean_inc(x_88);
lean_dec_ref(x_87);
lean_ctor_set(x_13, 0, x_86);
x_89 = 0;
x_90 = 1;
if (lean_obj_tag(x_88) == 1)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; 
x_91 = lean_ctor_get(x_88, 0);
lean_inc(x_91);
x_92 = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(x_92, 0, x_91);
lean_ctor_set_uint8(x_92, sizeof(void*)*1, x_89);
x_93 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_92, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_94 = lean_ctor_get(x_93, 0);
lean_inc(x_94);
lean_dec_ref(x_93);
x_95 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_94, x_92, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_94);
x_96 = lean_ctor_get(x_95, 0);
lean_inc(x_96);
lean_dec_ref(x_95);
x_97 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_92, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_97) == 0)
{
lean_object* x_98; lean_object* x_99; uint8_t x_100; 
x_98 = lean_ctor_get(x_97, 0);
lean_inc(x_98);
lean_dec_ref(x_97);
x_99 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_98, x_92, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_92);
lean_dec(x_98);
x_100 = !lean_is_exclusive(x_99);
if (x_100 == 0)
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_ctor_get(x_99, 0);
x_102 = lean_ctor_get(x_96, 3);
lean_inc_ref(x_102);
lean_dec(x_96);
x_103 = lean_ctor_get(x_101, 4);
lean_inc_ref(x_103);
lean_dec(x_101);
lean_inc_ref(x_8);
lean_inc(x_24);
lean_inc(x_79);
lean_inc(x_20);
lean_inc_ref(x_1);
lean_inc(x_15);
x_104 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_15, x_1, x_103, x_20, x_79, x_24, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_104) == 0)
{
lean_object* x_105; 
x_105 = lean_ctor_get(x_104, 0);
lean_inc(x_105);
lean_dec_ref(x_104);
if (lean_obj_tag(x_105) == 1)
{
lean_ctor_set_tag(x_99, 1);
lean_ctor_set(x_99, 0, x_102);
x_40 = x_13;
x_41 = x_81;
x_42 = x_88;
x_43 = x_99;
x_44 = x_105;
x_45 = x_90;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
else
{
lean_object* x_106; 
lean_dec(x_105);
lean_dec_ref(x_102);
lean_free_object(x_99);
lean_dec_ref(x_88);
x_106 = lean_box(0);
x_40 = x_13;
x_41 = x_81;
x_42 = x_106;
x_43 = x_106;
x_44 = x_106;
x_45 = x_90;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
}
else
{
uint8_t x_107; 
lean_dec_ref(x_102);
lean_free_object(x_99);
lean_dec_ref(x_13);
lean_dec_ref(x_88);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_107 = !lean_is_exclusive(x_104);
if (x_107 == 0)
{
return x_104;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_ctor_get(x_104, 0);
lean_inc(x_108);
lean_dec(x_104);
x_109 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_109, 0, x_108);
return x_109;
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; 
x_110 = lean_ctor_get(x_99, 0);
lean_inc(x_110);
lean_dec(x_99);
x_111 = lean_ctor_get(x_96, 3);
lean_inc_ref(x_111);
lean_dec(x_96);
x_112 = lean_ctor_get(x_110, 4);
lean_inc_ref(x_112);
lean_dec(x_110);
lean_inc_ref(x_8);
lean_inc(x_24);
lean_inc(x_79);
lean_inc(x_20);
lean_inc_ref(x_1);
lean_inc(x_15);
x_113 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_15, x_1, x_112, x_20, x_79, x_24, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_113) == 0)
{
lean_object* x_114; 
x_114 = lean_ctor_get(x_113, 0);
lean_inc(x_114);
lean_dec_ref(x_113);
if (lean_obj_tag(x_114) == 1)
{
lean_object* x_115; 
x_115 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_115, 0, x_111);
x_40 = x_13;
x_41 = x_81;
x_42 = x_88;
x_43 = x_115;
x_44 = x_114;
x_45 = x_90;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
else
{
lean_object* x_116; 
lean_dec(x_114);
lean_dec_ref(x_111);
lean_dec_ref(x_88);
x_116 = lean_box(0);
x_40 = x_13;
x_41 = x_81;
x_42 = x_116;
x_43 = x_116;
x_44 = x_116;
x_45 = x_90;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; 
lean_dec_ref(x_111);
lean_dec_ref(x_13);
lean_dec_ref(x_88);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_117 = lean_ctor_get(x_113, 0);
lean_inc(x_117);
if (lean_is_exclusive(x_113)) {
 lean_ctor_release(x_113, 0);
 x_118 = x_113;
} else {
 lean_dec_ref(x_113);
 x_118 = lean_box(0);
}
if (lean_is_scalar(x_118)) {
 x_119 = lean_alloc_ctor(1, 1, 0);
} else {
 x_119 = x_118;
}
lean_ctor_set(x_119, 0, x_117);
return x_119;
}
}
}
else
{
uint8_t x_120; 
lean_dec(x_96);
lean_dec_ref(x_92);
lean_dec_ref(x_13);
lean_dec_ref(x_88);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_120 = !lean_is_exclusive(x_97);
if (x_120 == 0)
{
return x_97;
}
else
{
lean_object* x_121; lean_object* x_122; 
x_121 = lean_ctor_get(x_97, 0);
lean_inc(x_121);
lean_dec(x_97);
x_122 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_122, 0, x_121);
return x_122;
}
}
}
else
{
uint8_t x_123; 
lean_dec_ref(x_92);
lean_dec_ref(x_13);
lean_dec_ref(x_88);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_123 = !lean_is_exclusive(x_93);
if (x_123 == 0)
{
return x_93;
}
else
{
lean_object* x_124; lean_object* x_125; 
x_124 = lean_ctor_get(x_93, 0);
lean_inc(x_124);
lean_dec(x_93);
x_125 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_125, 0, x_124);
return x_125;
}
}
}
else
{
lean_object* x_126; 
lean_dec(x_88);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_126 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_126) == 0)
{
uint8_t x_127; 
x_127 = !lean_is_exclusive(x_126);
if (x_127 == 0)
{
lean_object* x_128; 
x_128 = lean_ctor_get(x_126, 0);
if (lean_obj_tag(x_128) == 1)
{
lean_object* x_129; lean_object* x_130; 
x_129 = lean_ctor_get(x_128, 0);
x_130 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_129, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_131; lean_object* x_132; 
x_131 = lean_ctor_get(x_130, 0);
lean_inc(x_131);
lean_dec_ref(x_130);
x_132 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_129, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
if (lean_obj_tag(x_132) == 0)
{
lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; 
x_133 = lean_ctor_get(x_132, 0);
lean_inc(x_133);
lean_dec_ref(x_132);
x_134 = lean_ctor_get(x_131, 4);
lean_inc_ref(x_134);
lean_dec(x_131);
x_135 = lean_ctor_get(x_133, 3);
lean_inc_ref(x_135);
lean_dec(x_133);
lean_inc_ref(x_8);
lean_inc(x_24);
lean_inc(x_79);
lean_inc(x_20);
lean_inc_ref(x_1);
lean_inc(x_15);
x_136 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_15, x_1, x_134, x_20, x_79, x_24, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_136) == 0)
{
lean_object* x_137; 
x_137 = lean_ctor_get(x_136, 0);
lean_inc(x_137);
lean_dec_ref(x_136);
if (lean_obj_tag(x_137) == 1)
{
lean_ctor_set_tag(x_126, 1);
lean_ctor_set(x_126, 0, x_135);
x_40 = x_13;
x_41 = x_81;
x_42 = x_128;
x_43 = x_126;
x_44 = x_137;
x_45 = x_89;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
else
{
lean_object* x_138; 
lean_dec(x_137);
lean_dec_ref(x_135);
lean_free_object(x_126);
lean_dec_ref(x_128);
x_138 = lean_box(0);
x_40 = x_13;
x_41 = x_81;
x_42 = x_138;
x_43 = x_138;
x_44 = x_138;
x_45 = x_90;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
}
else
{
uint8_t x_139; 
lean_dec_ref(x_135);
lean_free_object(x_126);
lean_dec_ref(x_128);
lean_dec_ref(x_13);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_139 = !lean_is_exclusive(x_136);
if (x_139 == 0)
{
return x_136;
}
else
{
lean_object* x_140; lean_object* x_141; 
x_140 = lean_ctor_get(x_136, 0);
lean_inc(x_140);
lean_dec(x_136);
x_141 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_141, 0, x_140);
return x_141;
}
}
}
else
{
uint8_t x_142; 
lean_dec(x_131);
lean_free_object(x_126);
lean_dec_ref(x_128);
lean_dec_ref(x_13);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_2);
lean_dec_ref(x_1);
x_142 = !lean_is_exclusive(x_132);
if (x_142 == 0)
{
return x_132;
}
else
{
lean_object* x_143; lean_object* x_144; 
x_143 = lean_ctor_get(x_132, 0);
lean_inc(x_143);
lean_dec(x_132);
x_144 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_144, 0, x_143);
return x_144;
}
}
}
else
{
uint8_t x_145; 
lean_free_object(x_126);
lean_dec_ref(x_128);
lean_dec_ref(x_13);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_145 = !lean_is_exclusive(x_130);
if (x_145 == 0)
{
return x_130;
}
else
{
lean_object* x_146; lean_object* x_147; 
x_146 = lean_ctor_get(x_130, 0);
lean_inc(x_146);
lean_dec(x_130);
x_147 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_147, 0, x_146);
return x_147;
}
}
}
else
{
lean_object* x_148; 
lean_free_object(x_126);
lean_dec(x_128);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_148 = lean_box(0);
x_40 = x_13;
x_41 = x_81;
x_42 = x_148;
x_43 = x_148;
x_44 = x_148;
x_45 = x_89;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
}
else
{
lean_object* x_149; 
x_149 = lean_ctor_get(x_126, 0);
lean_inc(x_149);
lean_dec(x_126);
if (lean_obj_tag(x_149) == 1)
{
lean_object* x_150; lean_object* x_151; 
x_150 = lean_ctor_get(x_149, 0);
x_151 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_150, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_151) == 0)
{
lean_object* x_152; lean_object* x_153; 
x_152 = lean_ctor_get(x_151, 0);
lean_inc(x_152);
lean_dec_ref(x_151);
x_153 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_150, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
if (lean_obj_tag(x_153) == 0)
{
lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; 
x_154 = lean_ctor_get(x_153, 0);
lean_inc(x_154);
lean_dec_ref(x_153);
x_155 = lean_ctor_get(x_152, 4);
lean_inc_ref(x_155);
lean_dec(x_152);
x_156 = lean_ctor_get(x_154, 3);
lean_inc_ref(x_156);
lean_dec(x_154);
lean_inc_ref(x_8);
lean_inc(x_24);
lean_inc(x_79);
lean_inc(x_20);
lean_inc_ref(x_1);
lean_inc(x_15);
x_157 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_15, x_1, x_155, x_20, x_79, x_24, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_157) == 0)
{
lean_object* x_158; 
x_158 = lean_ctor_get(x_157, 0);
lean_inc(x_158);
lean_dec_ref(x_157);
if (lean_obj_tag(x_158) == 1)
{
lean_object* x_159; 
x_159 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_159, 0, x_156);
x_40 = x_13;
x_41 = x_81;
x_42 = x_149;
x_43 = x_159;
x_44 = x_158;
x_45 = x_89;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
else
{
lean_object* x_160; 
lean_dec(x_158);
lean_dec_ref(x_156);
lean_dec_ref(x_149);
x_160 = lean_box(0);
x_40 = x_13;
x_41 = x_81;
x_42 = x_160;
x_43 = x_160;
x_44 = x_160;
x_45 = x_90;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
lean_dec_ref(x_156);
lean_dec_ref(x_149);
lean_dec_ref(x_13);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_161 = lean_ctor_get(x_157, 0);
lean_inc(x_161);
if (lean_is_exclusive(x_157)) {
 lean_ctor_release(x_157, 0);
 x_162 = x_157;
} else {
 lean_dec_ref(x_157);
 x_162 = lean_box(0);
}
if (lean_is_scalar(x_162)) {
 x_163 = lean_alloc_ctor(1, 1, 0);
} else {
 x_163 = x_162;
}
lean_ctor_set(x_163, 0, x_161);
return x_163;
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; 
lean_dec(x_152);
lean_dec_ref(x_149);
lean_dec_ref(x_13);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_2);
lean_dec_ref(x_1);
x_164 = lean_ctor_get(x_153, 0);
lean_inc(x_164);
if (lean_is_exclusive(x_153)) {
 lean_ctor_release(x_153, 0);
 x_165 = x_153;
} else {
 lean_dec_ref(x_153);
 x_165 = lean_box(0);
}
if (lean_is_scalar(x_165)) {
 x_166 = lean_alloc_ctor(1, 1, 0);
} else {
 x_166 = x_165;
}
lean_ctor_set(x_166, 0, x_164);
return x_166;
}
}
else
{
lean_object* x_167; lean_object* x_168; lean_object* x_169; 
lean_dec_ref(x_149);
lean_dec_ref(x_13);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_167 = lean_ctor_get(x_151, 0);
lean_inc(x_167);
if (lean_is_exclusive(x_151)) {
 lean_ctor_release(x_151, 0);
 x_168 = x_151;
} else {
 lean_dec_ref(x_151);
 x_168 = lean_box(0);
}
if (lean_is_scalar(x_168)) {
 x_169 = lean_alloc_ctor(1, 1, 0);
} else {
 x_169 = x_168;
}
lean_ctor_set(x_169, 0, x_167);
return x_169;
}
}
else
{
lean_object* x_170; 
lean_dec(x_149);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_170 = lean_box(0);
x_40 = x_13;
x_41 = x_81;
x_42 = x_170;
x_43 = x_170;
x_44 = x_170;
x_45 = x_89;
x_46 = x_2;
x_47 = x_8;
x_48 = lean_box(0);
goto block_70;
}
}
}
else
{
lean_dec_ref(x_13);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_126;
}
}
}
else
{
lean_dec(x_86);
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_87;
}
}
else
{
uint8_t x_171; 
lean_dec_ref(x_81);
lean_dec(x_39);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_171 = !lean_is_exclusive(x_85);
if (x_171 == 0)
{
return x_85;
}
else
{
lean_object* x_172; lean_object* x_173; 
x_172 = lean_ctor_get(x_85, 0);
lean_inc(x_172);
lean_dec(x_85);
x_173 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_173, 0, x_172);
return x_173;
}
}
}
}
else
{
uint8_t x_174; 
lean_dec(x_39);
lean_dec_ref(x_35);
lean_dec_ref(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_174 = !lean_is_exclusive(x_80);
if (x_174 == 0)
{
return x_80;
}
else
{
lean_object* x_175; lean_object* x_176; 
x_175 = lean_ctor_get(x_80, 0);
lean_inc(x_175);
lean_dec(x_80);
x_176 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_176, 0, x_175);
return x_176;
}
}
}
else
{
lean_object* x_177; 
lean_dec_ref(x_35);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_177 = lean_box(0);
x_71 = x_177;
x_72 = x_177;
x_73 = x_2;
x_74 = x_8;
x_75 = lean_box(0);
goto block_78;
}
block_70:
{
lean_object* x_49; 
x_49 = l_Lean_Meta_Grind_Order_get_x27___redArg(x_46, x_47);
lean_dec_ref(x_47);
if (lean_obj_tag(x_49) == 0)
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 
x_50 = lean_ctor_get(x_49, 0);
lean_inc(x_50);
lean_dec_ref(x_49);
x_51 = lean_ctor_get(x_50, 0);
lean_inc_ref(x_51);
lean_dec(x_50);
x_52 = lean_array_get_size(x_51);
lean_dec_ref(x_51);
x_53 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8;
x_54 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10;
lean_inc(x_52);
x_55 = lean_alloc_ctor(0, 22, 1);
lean_ctor_set(x_55, 0, x_52);
lean_ctor_set(x_55, 1, x_1);
lean_ctor_set(x_55, 2, x_15);
lean_ctor_set(x_55, 3, x_24);
lean_ctor_set(x_55, 4, x_20);
lean_ctor_set(x_55, 5, x_32);
lean_ctor_set(x_55, 6, x_27);
lean_ctor_set(x_55, 7, x_29);
lean_ctor_set(x_55, 8, x_41);
lean_ctor_set(x_55, 9, x_42);
lean_ctor_set(x_55, 10, x_43);
lean_ctor_set(x_55, 11, x_44);
lean_ctor_set(x_55, 12, x_39);
lean_ctor_set(x_55, 13, x_40);
lean_ctor_set(x_55, 14, x_53);
lean_ctor_set(x_55, 15, x_54);
lean_ctor_set(x_55, 16, x_54);
lean_ctor_set(x_55, 17, x_54);
lean_ctor_set(x_55, 18, x_53);
lean_ctor_set(x_55, 19, x_53);
lean_ctor_set(x_55, 20, x_53);
lean_ctor_set(x_55, 21, x_34);
lean_ctor_set_uint8(x_55, sizeof(void*)*22, x_45);
x_56 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__0), 2, 1);
lean_closure_set(x_56, 0, x_55);
x_57 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
x_58 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_57, x_56, x_46);
lean_dec(x_46);
if (lean_obj_tag(x_58) == 0)
{
uint8_t x_59; 
x_59 = !lean_is_exclusive(x_58);
if (x_59 == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_58, 0);
lean_dec(x_60);
if (lean_is_scalar(x_25)) {
 x_61 = lean_alloc_ctor(1, 1, 0);
} else {
 x_61 = x_25;
}
lean_ctor_set(x_61, 0, x_52);
lean_ctor_set(x_58, 0, x_61);
return x_58;
}
else
{
lean_object* x_62; lean_object* x_63; 
lean_dec(x_58);
if (lean_is_scalar(x_25)) {
 x_62 = lean_alloc_ctor(1, 1, 0);
} else {
 x_62 = x_25;
}
lean_ctor_set(x_62, 0, x_52);
x_63 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_63, 0, x_62);
return x_63;
}
}
else
{
uint8_t x_64; 
lean_dec(x_52);
lean_dec(x_25);
x_64 = !lean_is_exclusive(x_58);
if (x_64 == 0)
{
return x_58;
}
else
{
lean_object* x_65; lean_object* x_66; 
x_65 = lean_ctor_get(x_58, 0);
lean_inc(x_65);
lean_dec(x_58);
x_66 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_66, 0, x_65);
return x_66;
}
}
}
else
{
uint8_t x_67; 
lean_dec(x_46);
lean_dec(x_44);
lean_dec(x_43);
lean_dec(x_42);
lean_dec(x_41);
lean_dec(x_40);
lean_dec(x_39);
lean_dec(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec(x_15);
lean_dec_ref(x_1);
x_67 = !lean_is_exclusive(x_49);
if (x_67 == 0)
{
return x_49;
}
else
{
lean_object* x_68; lean_object* x_69; 
x_68 = lean_ctor_get(x_49, 0);
lean_inc(x_68);
lean_dec(x_49);
x_69 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_69, 0, x_68);
return x_69;
}
}
}
block_78:
{
lean_object* x_76; uint8_t x_77; 
x_76 = lean_box(0);
x_77 = 0;
lean_inc_n(x_71, 2);
x_40 = x_72;
x_41 = x_71;
x_42 = x_76;
x_43 = x_71;
x_44 = x_71;
x_45 = x_77;
x_46 = x_73;
x_47 = x_74;
x_48 = lean_box(0);
goto block_70;
}
}
else
{
uint8_t x_178; 
lean_dec_ref(x_35);
lean_dec(x_32);
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_178 = !lean_is_exclusive(x_38);
if (x_178 == 0)
{
return x_38;
}
else
{
lean_object* x_179; lean_object* x_180; 
x_179 = lean_ctor_get(x_38, 0);
lean_inc(x_179);
lean_dec(x_38);
x_180 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_180, 0, x_179);
return x_180;
}
}
}
else
{
uint8_t x_181; 
lean_dec(x_29);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_181 = !lean_is_exclusive(x_31);
if (x_181 == 0)
{
return x_31;
}
else
{
lean_object* x_182; lean_object* x_183; 
x_182 = lean_ctor_get(x_31, 0);
lean_inc(x_182);
lean_dec(x_31);
x_183 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_183, 0, x_182);
return x_183;
}
}
}
else
{
uint8_t x_184; 
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_184 = !lean_is_exclusive(x_28);
if (x_184 == 0)
{
return x_28;
}
else
{
lean_object* x_185; lean_object* x_186; 
x_185 = lean_ctor_get(x_28, 0);
lean_inc(x_185);
lean_dec(x_28);
x_186 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_186, 0, x_185);
return x_186;
}
}
}
else
{
uint8_t x_187; 
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_187 = !lean_is_exclusive(x_26);
if (x_187 == 0)
{
return x_26;
}
else
{
lean_object* x_188; lean_object* x_189; 
x_188 = lean_ctor_get(x_26, 0);
lean_inc(x_188);
lean_dec(x_26);
x_189 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_189, 0, x_188);
return x_189;
}
}
}
else
{
lean_object* x_190; 
lean_dec(x_23);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_190 = lean_box(0);
lean_ctor_set(x_21, 0, x_190);
return x_21;
}
}
else
{
lean_object* x_191; 
x_191 = lean_ctor_get(x_21, 0);
lean_inc(x_191);
lean_dec(x_21);
if (lean_obj_tag(x_191) == 1)
{
lean_object* x_192; lean_object* x_193; lean_object* x_194; 
x_192 = lean_ctor_get(x_191, 0);
lean_inc(x_192);
if (lean_is_exclusive(x_191)) {
 lean_ctor_release(x_191, 0);
 x_193 = x_191;
} else {
 lean_dec_ref(x_191);
 x_193 = lean_box(0);
}
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_19);
lean_inc_ref(x_1);
lean_inc(x_15);
x_194 = l_Lean_Meta_Grind_mkIsPartialOrderInst_x3f___redArg(x_15, x_1, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_194) == 0)
{
lean_object* x_195; lean_object* x_196; 
x_195 = lean_ctor_get(x_194, 0);
lean_inc(x_195);
lean_dec_ref(x_194);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_19);
lean_inc_ref(x_1);
lean_inc(x_15);
x_196 = l_Lean_Meta_Grind_mkIsLinearPreorderInst_x3f___redArg(x_15, x_1, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_196) == 0)
{
lean_object* x_197; lean_object* x_198; lean_object* x_199; 
x_197 = lean_ctor_get(x_196, 0);
lean_inc(x_197);
lean_dec_ref(x_196);
x_198 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3;
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
lean_inc(x_15);
x_199 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_198, x_15, x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_199) == 0)
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; 
x_200 = lean_ctor_get(x_199, 0);
lean_inc(x_200);
lean_dec_ref(x_199);
x_201 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5;
x_202 = lean_box(0);
lean_inc(x_15);
x_203 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_203, 0, x_15);
lean_ctor_set(x_203, 1, x_202);
lean_inc_ref(x_203);
x_204 = l_Lean_mkConst(x_201, x_203);
lean_inc(x_20);
lean_inc_ref(x_1);
x_205 = l_Lean_mkAppB(x_204, x_1, x_20);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_206 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_205, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_206) == 0)
{
lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; 
x_207 = lean_ctor_get(x_206, 0);
lean_inc(x_207);
lean_dec_ref(x_206);
if (lean_obj_tag(x_200) == 1)
{
lean_object* x_245; lean_object* x_246; 
x_245 = lean_ctor_get(x_200, 0);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_200);
lean_inc_ref(x_1);
lean_inc(x_15);
x_246 = l_Lean_Meta_Grind_mkLawfulOrderLTInst_x3f___redArg(x_15, x_1, x_200, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_246) == 0)
{
lean_object* x_247; 
x_247 = lean_ctor_get(x_246, 0);
lean_inc(x_247);
lean_dec_ref(x_246);
if (lean_obj_tag(x_247) == 0)
{
lean_dec_ref(x_203);
lean_free_object(x_13);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_237 = x_247;
x_238 = x_247;
x_239 = x_2;
x_240 = x_8;
x_241 = lean_box(0);
goto block_244;
}
else
{
lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_248 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13;
x_249 = l_Lean_mkConst(x_248, x_203);
lean_inc(x_245);
lean_inc_ref(x_1);
x_250 = l_Lean_mkAppB(x_249, x_1, x_245);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_251 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_250, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_251) == 0)
{
lean_object* x_252; lean_object* x_253; 
x_252 = lean_ctor_get(x_251, 0);
lean_inc(x_252);
lean_dec_ref(x_251);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_253 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; uint8_t x_255; uint8_t x_256; 
x_254 = lean_ctor_get(x_253, 0);
lean_inc(x_254);
lean_dec_ref(x_253);
lean_ctor_set(x_13, 0, x_252);
x_255 = 0;
x_256 = 1;
if (lean_obj_tag(x_254) == 1)
{
lean_object* x_257; lean_object* x_258; lean_object* x_259; 
x_257 = lean_ctor_get(x_254, 0);
lean_inc(x_257);
x_258 = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(x_258, 0, x_257);
lean_ctor_set_uint8(x_258, sizeof(void*)*1, x_255);
x_259 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_258, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; 
x_260 = lean_ctor_get(x_259, 0);
lean_inc(x_260);
lean_dec_ref(x_259);
x_261 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_260, x_258, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_260);
x_262 = lean_ctor_get(x_261, 0);
lean_inc(x_262);
lean_dec_ref(x_261);
x_263 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_258, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_263) == 0)
{
lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; 
x_264 = lean_ctor_get(x_263, 0);
lean_inc(x_264);
lean_dec_ref(x_263);
x_265 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_264, x_258, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_258);
lean_dec(x_264);
x_266 = lean_ctor_get(x_265, 0);
lean_inc(x_266);
if (lean_is_exclusive(x_265)) {
 lean_ctor_release(x_265, 0);
 x_267 = x_265;
} else {
 lean_dec_ref(x_265);
 x_267 = lean_box(0);
}
x_268 = lean_ctor_get(x_262, 3);
lean_inc_ref(x_268);
lean_dec(x_262);
x_269 = lean_ctor_get(x_266, 4);
lean_inc_ref(x_269);
lean_dec(x_266);
lean_inc_ref(x_8);
lean_inc(x_192);
lean_inc(x_245);
lean_inc(x_20);
lean_inc_ref(x_1);
lean_inc(x_15);
x_270 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_15, x_1, x_269, x_20, x_245, x_192, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_270) == 0)
{
lean_object* x_271; 
x_271 = lean_ctor_get(x_270, 0);
lean_inc(x_271);
lean_dec_ref(x_270);
if (lean_obj_tag(x_271) == 1)
{
lean_object* x_272; 
if (lean_is_scalar(x_267)) {
 x_272 = lean_alloc_ctor(1, 1, 0);
} else {
 x_272 = x_267;
 lean_ctor_set_tag(x_272, 1);
}
lean_ctor_set(x_272, 0, x_268);
x_208 = x_13;
x_209 = x_247;
x_210 = x_254;
x_211 = x_272;
x_212 = x_271;
x_213 = x_256;
x_214 = x_2;
x_215 = x_8;
x_216 = lean_box(0);
goto block_236;
}
else
{
lean_object* x_273; 
lean_dec(x_271);
lean_dec_ref(x_268);
lean_dec(x_267);
lean_dec_ref(x_254);
x_273 = lean_box(0);
x_208 = x_13;
x_209 = x_247;
x_210 = x_273;
x_211 = x_273;
x_212 = x_273;
x_213 = x_256;
x_214 = x_2;
x_215 = x_8;
x_216 = lean_box(0);
goto block_236;
}
}
else
{
lean_object* x_274; lean_object* x_275; lean_object* x_276; 
lean_dec_ref(x_268);
lean_dec(x_267);
lean_dec_ref(x_13);
lean_dec_ref(x_254);
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec(x_15);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_274 = lean_ctor_get(x_270, 0);
lean_inc(x_274);
if (lean_is_exclusive(x_270)) {
 lean_ctor_release(x_270, 0);
 x_275 = x_270;
} else {
 lean_dec_ref(x_270);
 x_275 = lean_box(0);
}
if (lean_is_scalar(x_275)) {
 x_276 = lean_alloc_ctor(1, 1, 0);
} else {
 x_276 = x_275;
}
lean_ctor_set(x_276, 0, x_274);
return x_276;
}
}
else
{
lean_object* x_277; lean_object* x_278; lean_object* x_279; 
lean_dec(x_262);
lean_dec_ref(x_258);
lean_dec_ref(x_13);
lean_dec_ref(x_254);
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_277 = lean_ctor_get(x_263, 0);
lean_inc(x_277);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 x_278 = x_263;
} else {
 lean_dec_ref(x_263);
 x_278 = lean_box(0);
}
if (lean_is_scalar(x_278)) {
 x_279 = lean_alloc_ctor(1, 1, 0);
} else {
 x_279 = x_278;
}
lean_ctor_set(x_279, 0, x_277);
return x_279;
}
}
else
{
lean_object* x_280; lean_object* x_281; lean_object* x_282; 
lean_dec_ref(x_258);
lean_dec_ref(x_13);
lean_dec_ref(x_254);
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_280 = lean_ctor_get(x_259, 0);
lean_inc(x_280);
if (lean_is_exclusive(x_259)) {
 lean_ctor_release(x_259, 0);
 x_281 = x_259;
} else {
 lean_dec_ref(x_259);
 x_281 = lean_box(0);
}
if (lean_is_scalar(x_281)) {
 x_282 = lean_alloc_ctor(1, 1, 0);
} else {
 x_282 = x_281;
}
lean_ctor_set(x_282, 0, x_280);
return x_282;
}
}
else
{
lean_object* x_283; 
lean_dec(x_254);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_283 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_284; lean_object* x_285; 
x_284 = lean_ctor_get(x_283, 0);
lean_inc(x_284);
if (lean_is_exclusive(x_283)) {
 lean_ctor_release(x_283, 0);
 x_285 = x_283;
} else {
 lean_dec_ref(x_283);
 x_285 = lean_box(0);
}
if (lean_obj_tag(x_284) == 1)
{
lean_object* x_286; lean_object* x_287; 
x_286 = lean_ctor_get(x_284, 0);
x_287 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_286, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_287) == 0)
{
lean_object* x_288; lean_object* x_289; 
x_288 = lean_ctor_get(x_287, 0);
lean_inc(x_288);
lean_dec_ref(x_287);
x_289 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_286, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
if (lean_obj_tag(x_289) == 0)
{
lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; 
x_290 = lean_ctor_get(x_289, 0);
lean_inc(x_290);
lean_dec_ref(x_289);
x_291 = lean_ctor_get(x_288, 4);
lean_inc_ref(x_291);
lean_dec(x_288);
x_292 = lean_ctor_get(x_290, 3);
lean_inc_ref(x_292);
lean_dec(x_290);
lean_inc_ref(x_8);
lean_inc(x_192);
lean_inc(x_245);
lean_inc(x_20);
lean_inc_ref(x_1);
lean_inc(x_15);
x_293 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_15, x_1, x_291, x_20, x_245, x_192, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_293) == 0)
{
lean_object* x_294; 
x_294 = lean_ctor_get(x_293, 0);
lean_inc(x_294);
lean_dec_ref(x_293);
if (lean_obj_tag(x_294) == 1)
{
lean_object* x_295; 
if (lean_is_scalar(x_285)) {
 x_295 = lean_alloc_ctor(1, 1, 0);
} else {
 x_295 = x_285;
 lean_ctor_set_tag(x_295, 1);
}
lean_ctor_set(x_295, 0, x_292);
x_208 = x_13;
x_209 = x_247;
x_210 = x_284;
x_211 = x_295;
x_212 = x_294;
x_213 = x_255;
x_214 = x_2;
x_215 = x_8;
x_216 = lean_box(0);
goto block_236;
}
else
{
lean_object* x_296; 
lean_dec(x_294);
lean_dec_ref(x_292);
lean_dec(x_285);
lean_dec_ref(x_284);
x_296 = lean_box(0);
x_208 = x_13;
x_209 = x_247;
x_210 = x_296;
x_211 = x_296;
x_212 = x_296;
x_213 = x_256;
x_214 = x_2;
x_215 = x_8;
x_216 = lean_box(0);
goto block_236;
}
}
else
{
lean_object* x_297; lean_object* x_298; lean_object* x_299; 
lean_dec_ref(x_292);
lean_dec(x_285);
lean_dec_ref(x_284);
lean_dec_ref(x_13);
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec(x_15);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_297 = lean_ctor_get(x_293, 0);
lean_inc(x_297);
if (lean_is_exclusive(x_293)) {
 lean_ctor_release(x_293, 0);
 x_298 = x_293;
} else {
 lean_dec_ref(x_293);
 x_298 = lean_box(0);
}
if (lean_is_scalar(x_298)) {
 x_299 = lean_alloc_ctor(1, 1, 0);
} else {
 x_299 = x_298;
}
lean_ctor_set(x_299, 0, x_297);
return x_299;
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; 
lean_dec(x_288);
lean_dec(x_285);
lean_dec_ref(x_284);
lean_dec_ref(x_13);
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_2);
lean_dec_ref(x_1);
x_300 = lean_ctor_get(x_289, 0);
lean_inc(x_300);
if (lean_is_exclusive(x_289)) {
 lean_ctor_release(x_289, 0);
 x_301 = x_289;
} else {
 lean_dec_ref(x_289);
 x_301 = lean_box(0);
}
if (lean_is_scalar(x_301)) {
 x_302 = lean_alloc_ctor(1, 1, 0);
} else {
 x_302 = x_301;
}
lean_ctor_set(x_302, 0, x_300);
return x_302;
}
}
else
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
lean_dec(x_285);
lean_dec_ref(x_284);
lean_dec_ref(x_13);
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_303 = lean_ctor_get(x_287, 0);
lean_inc(x_303);
if (lean_is_exclusive(x_287)) {
 lean_ctor_release(x_287, 0);
 x_304 = x_287;
} else {
 lean_dec_ref(x_287);
 x_304 = lean_box(0);
}
if (lean_is_scalar(x_304)) {
 x_305 = lean_alloc_ctor(1, 1, 0);
} else {
 x_305 = x_304;
}
lean_ctor_set(x_305, 0, x_303);
return x_305;
}
}
else
{
lean_object* x_306; 
lean_dec(x_285);
lean_dec(x_284);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_306 = lean_box(0);
x_208 = x_13;
x_209 = x_247;
x_210 = x_306;
x_211 = x_306;
x_212 = x_306;
x_213 = x_255;
x_214 = x_2;
x_215 = x_8;
x_216 = lean_box(0);
goto block_236;
}
}
else
{
lean_dec_ref(x_13);
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_283;
}
}
}
else
{
lean_dec(x_252);
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_253;
}
}
else
{
lean_object* x_307; lean_object* x_308; lean_object* x_309; 
lean_dec_ref(x_247);
lean_dec(x_207);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_307 = lean_ctor_get(x_251, 0);
lean_inc(x_307);
if (lean_is_exclusive(x_251)) {
 lean_ctor_release(x_251, 0);
 x_308 = x_251;
} else {
 lean_dec_ref(x_251);
 x_308 = lean_box(0);
}
if (lean_is_scalar(x_308)) {
 x_309 = lean_alloc_ctor(1, 1, 0);
} else {
 x_309 = x_308;
}
lean_ctor_set(x_309, 0, x_307);
return x_309;
}
}
}
else
{
lean_object* x_310; lean_object* x_311; lean_object* x_312; 
lean_dec(x_207);
lean_dec_ref(x_203);
lean_dec_ref(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_310 = lean_ctor_get(x_246, 0);
lean_inc(x_310);
if (lean_is_exclusive(x_246)) {
 lean_ctor_release(x_246, 0);
 x_311 = x_246;
} else {
 lean_dec_ref(x_246);
 x_311 = lean_box(0);
}
if (lean_is_scalar(x_311)) {
 x_312 = lean_alloc_ctor(1, 1, 0);
} else {
 x_312 = x_311;
}
lean_ctor_set(x_312, 0, x_310);
return x_312;
}
}
else
{
lean_object* x_313; 
lean_dec_ref(x_203);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_313 = lean_box(0);
x_237 = x_313;
x_238 = x_313;
x_239 = x_2;
x_240 = x_8;
x_241 = lean_box(0);
goto block_244;
}
block_236:
{
lean_object* x_217; 
x_217 = l_Lean_Meta_Grind_Order_get_x27___redArg(x_214, x_215);
lean_dec_ref(x_215);
if (lean_obj_tag(x_217) == 0)
{
lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; 
x_218 = lean_ctor_get(x_217, 0);
lean_inc(x_218);
lean_dec_ref(x_217);
x_219 = lean_ctor_get(x_218, 0);
lean_inc_ref(x_219);
lean_dec(x_218);
x_220 = lean_array_get_size(x_219);
lean_dec_ref(x_219);
x_221 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8;
x_222 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10;
lean_inc(x_220);
x_223 = lean_alloc_ctor(0, 22, 1);
lean_ctor_set(x_223, 0, x_220);
lean_ctor_set(x_223, 1, x_1);
lean_ctor_set(x_223, 2, x_15);
lean_ctor_set(x_223, 3, x_192);
lean_ctor_set(x_223, 4, x_20);
lean_ctor_set(x_223, 5, x_200);
lean_ctor_set(x_223, 6, x_195);
lean_ctor_set(x_223, 7, x_197);
lean_ctor_set(x_223, 8, x_209);
lean_ctor_set(x_223, 9, x_210);
lean_ctor_set(x_223, 10, x_211);
lean_ctor_set(x_223, 11, x_212);
lean_ctor_set(x_223, 12, x_207);
lean_ctor_set(x_223, 13, x_208);
lean_ctor_set(x_223, 14, x_221);
lean_ctor_set(x_223, 15, x_222);
lean_ctor_set(x_223, 16, x_222);
lean_ctor_set(x_223, 17, x_222);
lean_ctor_set(x_223, 18, x_221);
lean_ctor_set(x_223, 19, x_221);
lean_ctor_set(x_223, 20, x_221);
lean_ctor_set(x_223, 21, x_202);
lean_ctor_set_uint8(x_223, sizeof(void*)*22, x_213);
x_224 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__0), 2, 1);
lean_closure_set(x_224, 0, x_223);
x_225 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
x_226 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_225, x_224, x_214);
lean_dec(x_214);
if (lean_obj_tag(x_226) == 0)
{
lean_object* x_227; lean_object* x_228; lean_object* x_229; 
if (lean_is_exclusive(x_226)) {
 lean_ctor_release(x_226, 0);
 x_227 = x_226;
} else {
 lean_dec_ref(x_226);
 x_227 = lean_box(0);
}
if (lean_is_scalar(x_193)) {
 x_228 = lean_alloc_ctor(1, 1, 0);
} else {
 x_228 = x_193;
}
lean_ctor_set(x_228, 0, x_220);
if (lean_is_scalar(x_227)) {
 x_229 = lean_alloc_ctor(0, 1, 0);
} else {
 x_229 = x_227;
}
lean_ctor_set(x_229, 0, x_228);
return x_229;
}
else
{
lean_object* x_230; lean_object* x_231; lean_object* x_232; 
lean_dec(x_220);
lean_dec(x_193);
x_230 = lean_ctor_get(x_226, 0);
lean_inc(x_230);
if (lean_is_exclusive(x_226)) {
 lean_ctor_release(x_226, 0);
 x_231 = x_226;
} else {
 lean_dec_ref(x_226);
 x_231 = lean_box(0);
}
if (lean_is_scalar(x_231)) {
 x_232 = lean_alloc_ctor(1, 1, 0);
} else {
 x_232 = x_231;
}
lean_ctor_set(x_232, 0, x_230);
return x_232;
}
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; 
lean_dec(x_214);
lean_dec(x_212);
lean_dec(x_211);
lean_dec(x_210);
lean_dec(x_209);
lean_dec(x_208);
lean_dec(x_207);
lean_dec(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec(x_15);
lean_dec_ref(x_1);
x_233 = lean_ctor_get(x_217, 0);
lean_inc(x_233);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 x_234 = x_217;
} else {
 lean_dec_ref(x_217);
 x_234 = lean_box(0);
}
if (lean_is_scalar(x_234)) {
 x_235 = lean_alloc_ctor(1, 1, 0);
} else {
 x_235 = x_234;
}
lean_ctor_set(x_235, 0, x_233);
return x_235;
}
}
block_244:
{
lean_object* x_242; uint8_t x_243; 
x_242 = lean_box(0);
x_243 = 0;
lean_inc_n(x_237, 2);
x_208 = x_238;
x_209 = x_237;
x_210 = x_242;
x_211 = x_237;
x_212 = x_237;
x_213 = x_243;
x_214 = x_239;
x_215 = x_240;
x_216 = lean_box(0);
goto block_236;
}
}
else
{
lean_object* x_314; lean_object* x_315; lean_object* x_316; 
lean_dec_ref(x_203);
lean_dec(x_200);
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_314 = lean_ctor_get(x_206, 0);
lean_inc(x_314);
if (lean_is_exclusive(x_206)) {
 lean_ctor_release(x_206, 0);
 x_315 = x_206;
} else {
 lean_dec_ref(x_206);
 x_315 = lean_box(0);
}
if (lean_is_scalar(x_315)) {
 x_316 = lean_alloc_ctor(1, 1, 0);
} else {
 x_316 = x_315;
}
lean_ctor_set(x_316, 0, x_314);
return x_316;
}
}
else
{
lean_object* x_317; lean_object* x_318; lean_object* x_319; 
lean_dec(x_197);
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_317 = lean_ctor_get(x_199, 0);
lean_inc(x_317);
if (lean_is_exclusive(x_199)) {
 lean_ctor_release(x_199, 0);
 x_318 = x_199;
} else {
 lean_dec_ref(x_199);
 x_318 = lean_box(0);
}
if (lean_is_scalar(x_318)) {
 x_319 = lean_alloc_ctor(1, 1, 0);
} else {
 x_319 = x_318;
}
lean_ctor_set(x_319, 0, x_317);
return x_319;
}
}
else
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
lean_dec(x_195);
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_320 = lean_ctor_get(x_196, 0);
lean_inc(x_320);
if (lean_is_exclusive(x_196)) {
 lean_ctor_release(x_196, 0);
 x_321 = x_196;
} else {
 lean_dec_ref(x_196);
 x_321 = lean_box(0);
}
if (lean_is_scalar(x_321)) {
 x_322 = lean_alloc_ctor(1, 1, 0);
} else {
 x_322 = x_321;
}
lean_ctor_set(x_322, 0, x_320);
return x_322;
}
}
else
{
lean_object* x_323; lean_object* x_324; lean_object* x_325; 
lean_dec(x_193);
lean_dec(x_192);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_323 = lean_ctor_get(x_194, 0);
lean_inc(x_323);
if (lean_is_exclusive(x_194)) {
 lean_ctor_release(x_194, 0);
 x_324 = x_194;
} else {
 lean_dec_ref(x_194);
 x_324 = lean_box(0);
}
if (lean_is_scalar(x_324)) {
 x_325 = lean_alloc_ctor(1, 1, 0);
} else {
 x_325 = x_324;
}
lean_ctor_set(x_325, 0, x_323);
return x_325;
}
}
else
{
lean_object* x_326; lean_object* x_327; 
lean_dec(x_191);
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_326 = lean_box(0);
x_327 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_327, 0, x_326);
return x_327;
}
}
}
else
{
uint8_t x_328; 
lean_dec(x_20);
lean_dec_ref(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_328 = !lean_is_exclusive(x_21);
if (x_328 == 0)
{
return x_21;
}
else
{
lean_object* x_329; lean_object* x_330; 
x_329 = lean_ctor_get(x_21, 0);
lean_inc(x_329);
lean_dec(x_21);
x_330 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_330, 0, x_329);
return x_330;
}
}
}
else
{
lean_object* x_331; 
lean_dec(x_19);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_331 = lean_box(0);
lean_ctor_set(x_17, 0, x_331);
return x_17;
}
}
else
{
lean_object* x_332; 
x_332 = lean_ctor_get(x_17, 0);
lean_inc(x_332);
lean_dec(x_17);
if (lean_obj_tag(x_332) == 1)
{
lean_object* x_333; lean_object* x_334; 
x_333 = lean_ctor_get(x_332, 0);
lean_inc(x_333);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_332);
lean_inc_ref(x_1);
lean_inc(x_15);
x_334 = l_Lean_Meta_Grind_mkIsPreorderInst_x3f___redArg(x_15, x_1, x_332, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_334) == 0)
{
lean_object* x_335; lean_object* x_336; 
x_335 = lean_ctor_get(x_334, 0);
lean_inc(x_335);
if (lean_is_exclusive(x_334)) {
 lean_ctor_release(x_334, 0);
 x_336 = x_334;
} else {
 lean_dec_ref(x_334);
 x_336 = lean_box(0);
}
if (lean_obj_tag(x_335) == 1)
{
lean_object* x_337; lean_object* x_338; lean_object* x_339; 
lean_dec(x_336);
x_337 = lean_ctor_get(x_335, 0);
lean_inc(x_337);
if (lean_is_exclusive(x_335)) {
 lean_ctor_release(x_335, 0);
 x_338 = x_335;
} else {
 lean_dec_ref(x_335);
 x_338 = lean_box(0);
}
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_332);
lean_inc_ref(x_1);
lean_inc(x_15);
x_339 = l_Lean_Meta_Grind_mkIsPartialOrderInst_x3f___redArg(x_15, x_1, x_332, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_339) == 0)
{
lean_object* x_340; lean_object* x_341; 
x_340 = lean_ctor_get(x_339, 0);
lean_inc(x_340);
lean_dec_ref(x_339);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_332);
lean_inc_ref(x_1);
lean_inc(x_15);
x_341 = l_Lean_Meta_Grind_mkIsLinearPreorderInst_x3f___redArg(x_15, x_1, x_332, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_341) == 0)
{
lean_object* x_342; lean_object* x_343; lean_object* x_344; 
x_342 = lean_ctor_get(x_341, 0);
lean_inc(x_342);
lean_dec_ref(x_341);
x_343 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3;
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
lean_inc(x_15);
x_344 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_343, x_15, x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_344) == 0)
{
lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; 
x_345 = lean_ctor_get(x_344, 0);
lean_inc(x_345);
lean_dec_ref(x_344);
x_346 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5;
x_347 = lean_box(0);
lean_inc(x_15);
x_348 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_348, 0, x_15);
lean_ctor_set(x_348, 1, x_347);
lean_inc_ref(x_348);
x_349 = l_Lean_mkConst(x_346, x_348);
lean_inc(x_333);
lean_inc_ref(x_1);
x_350 = l_Lean_mkAppB(x_349, x_1, x_333);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_351 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_350, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_351) == 0)
{
lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; uint8_t x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; 
x_352 = lean_ctor_get(x_351, 0);
lean_inc(x_352);
lean_dec_ref(x_351);
if (lean_obj_tag(x_345) == 1)
{
lean_object* x_390; lean_object* x_391; 
x_390 = lean_ctor_get(x_345, 0);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_345);
lean_inc_ref(x_1);
lean_inc(x_15);
x_391 = l_Lean_Meta_Grind_mkLawfulOrderLTInst_x3f___redArg(x_15, x_1, x_345, x_332, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_391) == 0)
{
lean_object* x_392; 
x_392 = lean_ctor_get(x_391, 0);
lean_inc(x_392);
lean_dec_ref(x_391);
if (lean_obj_tag(x_392) == 0)
{
lean_dec_ref(x_348);
lean_free_object(x_13);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_382 = x_392;
x_383 = x_392;
x_384 = x_2;
x_385 = x_8;
x_386 = lean_box(0);
goto block_389;
}
else
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13;
x_394 = l_Lean_mkConst(x_393, x_348);
lean_inc(x_390);
lean_inc_ref(x_1);
x_395 = l_Lean_mkAppB(x_394, x_1, x_390);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_396 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_395, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_396) == 0)
{
lean_object* x_397; lean_object* x_398; 
x_397 = lean_ctor_get(x_396, 0);
lean_inc(x_397);
lean_dec_ref(x_396);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_398 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_398) == 0)
{
lean_object* x_399; uint8_t x_400; uint8_t x_401; 
x_399 = lean_ctor_get(x_398, 0);
lean_inc(x_399);
lean_dec_ref(x_398);
lean_ctor_set(x_13, 0, x_397);
x_400 = 0;
x_401 = 1;
if (lean_obj_tag(x_399) == 1)
{
lean_object* x_402; lean_object* x_403; lean_object* x_404; 
x_402 = lean_ctor_get(x_399, 0);
lean_inc(x_402);
x_403 = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(x_403, 0, x_402);
lean_ctor_set_uint8(x_403, sizeof(void*)*1, x_400);
x_404 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_403, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_404) == 0)
{
lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; 
x_405 = lean_ctor_get(x_404, 0);
lean_inc(x_405);
lean_dec_ref(x_404);
x_406 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_405, x_403, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_405);
x_407 = lean_ctor_get(x_406, 0);
lean_inc(x_407);
lean_dec_ref(x_406);
x_408 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_403, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_408) == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; 
x_409 = lean_ctor_get(x_408, 0);
lean_inc(x_409);
lean_dec_ref(x_408);
x_410 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_409, x_403, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_403);
lean_dec(x_409);
x_411 = lean_ctor_get(x_410, 0);
lean_inc(x_411);
if (lean_is_exclusive(x_410)) {
 lean_ctor_release(x_410, 0);
 x_412 = x_410;
} else {
 lean_dec_ref(x_410);
 x_412 = lean_box(0);
}
x_413 = lean_ctor_get(x_407, 3);
lean_inc_ref(x_413);
lean_dec(x_407);
x_414 = lean_ctor_get(x_411, 4);
lean_inc_ref(x_414);
lean_dec(x_411);
lean_inc_ref(x_8);
lean_inc(x_337);
lean_inc(x_390);
lean_inc(x_333);
lean_inc_ref(x_1);
lean_inc(x_15);
x_415 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_15, x_1, x_414, x_333, x_390, x_337, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_415, 0);
lean_inc(x_416);
lean_dec_ref(x_415);
if (lean_obj_tag(x_416) == 1)
{
lean_object* x_417; 
if (lean_is_scalar(x_412)) {
 x_417 = lean_alloc_ctor(1, 1, 0);
} else {
 x_417 = x_412;
 lean_ctor_set_tag(x_417, 1);
}
lean_ctor_set(x_417, 0, x_413);
x_353 = x_13;
x_354 = x_392;
x_355 = x_399;
x_356 = x_417;
x_357 = x_416;
x_358 = x_401;
x_359 = x_2;
x_360 = x_8;
x_361 = lean_box(0);
goto block_381;
}
else
{
lean_object* x_418; 
lean_dec(x_416);
lean_dec_ref(x_413);
lean_dec(x_412);
lean_dec_ref(x_399);
x_418 = lean_box(0);
x_353 = x_13;
x_354 = x_392;
x_355 = x_418;
x_356 = x_418;
x_357 = x_418;
x_358 = x_401;
x_359 = x_2;
x_360 = x_8;
x_361 = lean_box(0);
goto block_381;
}
}
else
{
lean_object* x_419; lean_object* x_420; lean_object* x_421; 
lean_dec_ref(x_413);
lean_dec(x_412);
lean_dec_ref(x_13);
lean_dec_ref(x_399);
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec(x_15);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_419 = lean_ctor_get(x_415, 0);
lean_inc(x_419);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 x_420 = x_415;
} else {
 lean_dec_ref(x_415);
 x_420 = lean_box(0);
}
if (lean_is_scalar(x_420)) {
 x_421 = lean_alloc_ctor(1, 1, 0);
} else {
 x_421 = x_420;
}
lean_ctor_set(x_421, 0, x_419);
return x_421;
}
}
else
{
lean_object* x_422; lean_object* x_423; lean_object* x_424; 
lean_dec(x_407);
lean_dec_ref(x_403);
lean_dec_ref(x_13);
lean_dec_ref(x_399);
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_422 = lean_ctor_get(x_408, 0);
lean_inc(x_422);
if (lean_is_exclusive(x_408)) {
 lean_ctor_release(x_408, 0);
 x_423 = x_408;
} else {
 lean_dec_ref(x_408);
 x_423 = lean_box(0);
}
if (lean_is_scalar(x_423)) {
 x_424 = lean_alloc_ctor(1, 1, 0);
} else {
 x_424 = x_423;
}
lean_ctor_set(x_424, 0, x_422);
return x_424;
}
}
else
{
lean_object* x_425; lean_object* x_426; lean_object* x_427; 
lean_dec_ref(x_403);
lean_dec_ref(x_13);
lean_dec_ref(x_399);
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_425 = lean_ctor_get(x_404, 0);
lean_inc(x_425);
if (lean_is_exclusive(x_404)) {
 lean_ctor_release(x_404, 0);
 x_426 = x_404;
} else {
 lean_dec_ref(x_404);
 x_426 = lean_box(0);
}
if (lean_is_scalar(x_426)) {
 x_427 = lean_alloc_ctor(1, 1, 0);
} else {
 x_427 = x_426;
}
lean_ctor_set(x_427, 0, x_425);
return x_427;
}
}
else
{
lean_object* x_428; 
lean_dec(x_399);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_428 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_428) == 0)
{
lean_object* x_429; lean_object* x_430; 
x_429 = lean_ctor_get(x_428, 0);
lean_inc(x_429);
if (lean_is_exclusive(x_428)) {
 lean_ctor_release(x_428, 0);
 x_430 = x_428;
} else {
 lean_dec_ref(x_428);
 x_430 = lean_box(0);
}
if (lean_obj_tag(x_429) == 1)
{
lean_object* x_431; lean_object* x_432; 
x_431 = lean_ctor_get(x_429, 0);
x_432 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_431, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_432) == 0)
{
lean_object* x_433; lean_object* x_434; 
x_433 = lean_ctor_get(x_432, 0);
lean_inc(x_433);
lean_dec_ref(x_432);
x_434 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_431, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
if (lean_obj_tag(x_434) == 0)
{
lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; 
x_435 = lean_ctor_get(x_434, 0);
lean_inc(x_435);
lean_dec_ref(x_434);
x_436 = lean_ctor_get(x_433, 4);
lean_inc_ref(x_436);
lean_dec(x_433);
x_437 = lean_ctor_get(x_435, 3);
lean_inc_ref(x_437);
lean_dec(x_435);
lean_inc_ref(x_8);
lean_inc(x_337);
lean_inc(x_390);
lean_inc(x_333);
lean_inc_ref(x_1);
lean_inc(x_15);
x_438 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_15, x_1, x_436, x_333, x_390, x_337, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_438) == 0)
{
lean_object* x_439; 
x_439 = lean_ctor_get(x_438, 0);
lean_inc(x_439);
lean_dec_ref(x_438);
if (lean_obj_tag(x_439) == 1)
{
lean_object* x_440; 
if (lean_is_scalar(x_430)) {
 x_440 = lean_alloc_ctor(1, 1, 0);
} else {
 x_440 = x_430;
 lean_ctor_set_tag(x_440, 1);
}
lean_ctor_set(x_440, 0, x_437);
x_353 = x_13;
x_354 = x_392;
x_355 = x_429;
x_356 = x_440;
x_357 = x_439;
x_358 = x_400;
x_359 = x_2;
x_360 = x_8;
x_361 = lean_box(0);
goto block_381;
}
else
{
lean_object* x_441; 
lean_dec(x_439);
lean_dec_ref(x_437);
lean_dec(x_430);
lean_dec_ref(x_429);
x_441 = lean_box(0);
x_353 = x_13;
x_354 = x_392;
x_355 = x_441;
x_356 = x_441;
x_357 = x_441;
x_358 = x_401;
x_359 = x_2;
x_360 = x_8;
x_361 = lean_box(0);
goto block_381;
}
}
else
{
lean_object* x_442; lean_object* x_443; lean_object* x_444; 
lean_dec_ref(x_437);
lean_dec(x_430);
lean_dec_ref(x_429);
lean_dec_ref(x_13);
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec(x_15);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_442 = lean_ctor_get(x_438, 0);
lean_inc(x_442);
if (lean_is_exclusive(x_438)) {
 lean_ctor_release(x_438, 0);
 x_443 = x_438;
} else {
 lean_dec_ref(x_438);
 x_443 = lean_box(0);
}
if (lean_is_scalar(x_443)) {
 x_444 = lean_alloc_ctor(1, 1, 0);
} else {
 x_444 = x_443;
}
lean_ctor_set(x_444, 0, x_442);
return x_444;
}
}
else
{
lean_object* x_445; lean_object* x_446; lean_object* x_447; 
lean_dec(x_433);
lean_dec(x_430);
lean_dec_ref(x_429);
lean_dec_ref(x_13);
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_2);
lean_dec_ref(x_1);
x_445 = lean_ctor_get(x_434, 0);
lean_inc(x_445);
if (lean_is_exclusive(x_434)) {
 lean_ctor_release(x_434, 0);
 x_446 = x_434;
} else {
 lean_dec_ref(x_434);
 x_446 = lean_box(0);
}
if (lean_is_scalar(x_446)) {
 x_447 = lean_alloc_ctor(1, 1, 0);
} else {
 x_447 = x_446;
}
lean_ctor_set(x_447, 0, x_445);
return x_447;
}
}
else
{
lean_object* x_448; lean_object* x_449; lean_object* x_450; 
lean_dec(x_430);
lean_dec_ref(x_429);
lean_dec_ref(x_13);
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_448 = lean_ctor_get(x_432, 0);
lean_inc(x_448);
if (lean_is_exclusive(x_432)) {
 lean_ctor_release(x_432, 0);
 x_449 = x_432;
} else {
 lean_dec_ref(x_432);
 x_449 = lean_box(0);
}
if (lean_is_scalar(x_449)) {
 x_450 = lean_alloc_ctor(1, 1, 0);
} else {
 x_450 = x_449;
}
lean_ctor_set(x_450, 0, x_448);
return x_450;
}
}
else
{
lean_object* x_451; 
lean_dec(x_430);
lean_dec(x_429);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_451 = lean_box(0);
x_353 = x_13;
x_354 = x_392;
x_355 = x_451;
x_356 = x_451;
x_357 = x_451;
x_358 = x_400;
x_359 = x_2;
x_360 = x_8;
x_361 = lean_box(0);
goto block_381;
}
}
else
{
lean_dec_ref(x_13);
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_428;
}
}
}
else
{
lean_dec(x_397);
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_398;
}
}
else
{
lean_object* x_452; lean_object* x_453; lean_object* x_454; 
lean_dec_ref(x_392);
lean_dec(x_352);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_452 = lean_ctor_get(x_396, 0);
lean_inc(x_452);
if (lean_is_exclusive(x_396)) {
 lean_ctor_release(x_396, 0);
 x_453 = x_396;
} else {
 lean_dec_ref(x_396);
 x_453 = lean_box(0);
}
if (lean_is_scalar(x_453)) {
 x_454 = lean_alloc_ctor(1, 1, 0);
} else {
 x_454 = x_453;
}
lean_ctor_set(x_454, 0, x_452);
return x_454;
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; 
lean_dec(x_352);
lean_dec_ref(x_348);
lean_dec_ref(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_455 = lean_ctor_get(x_391, 0);
lean_inc(x_455);
if (lean_is_exclusive(x_391)) {
 lean_ctor_release(x_391, 0);
 x_456 = x_391;
} else {
 lean_dec_ref(x_391);
 x_456 = lean_box(0);
}
if (lean_is_scalar(x_456)) {
 x_457 = lean_alloc_ctor(1, 1, 0);
} else {
 x_457 = x_456;
}
lean_ctor_set(x_457, 0, x_455);
return x_457;
}
}
else
{
lean_object* x_458; 
lean_dec_ref(x_348);
lean_dec_ref(x_332);
lean_free_object(x_13);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_458 = lean_box(0);
x_382 = x_458;
x_383 = x_458;
x_384 = x_2;
x_385 = x_8;
x_386 = lean_box(0);
goto block_389;
}
block_381:
{
lean_object* x_362; 
x_362 = l_Lean_Meta_Grind_Order_get_x27___redArg(x_359, x_360);
lean_dec_ref(x_360);
if (lean_obj_tag(x_362) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; 
x_363 = lean_ctor_get(x_362, 0);
lean_inc(x_363);
lean_dec_ref(x_362);
x_364 = lean_ctor_get(x_363, 0);
lean_inc_ref(x_364);
lean_dec(x_363);
x_365 = lean_array_get_size(x_364);
lean_dec_ref(x_364);
x_366 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8;
x_367 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10;
lean_inc(x_365);
x_368 = lean_alloc_ctor(0, 22, 1);
lean_ctor_set(x_368, 0, x_365);
lean_ctor_set(x_368, 1, x_1);
lean_ctor_set(x_368, 2, x_15);
lean_ctor_set(x_368, 3, x_337);
lean_ctor_set(x_368, 4, x_333);
lean_ctor_set(x_368, 5, x_345);
lean_ctor_set(x_368, 6, x_340);
lean_ctor_set(x_368, 7, x_342);
lean_ctor_set(x_368, 8, x_354);
lean_ctor_set(x_368, 9, x_355);
lean_ctor_set(x_368, 10, x_356);
lean_ctor_set(x_368, 11, x_357);
lean_ctor_set(x_368, 12, x_352);
lean_ctor_set(x_368, 13, x_353);
lean_ctor_set(x_368, 14, x_366);
lean_ctor_set(x_368, 15, x_367);
lean_ctor_set(x_368, 16, x_367);
lean_ctor_set(x_368, 17, x_367);
lean_ctor_set(x_368, 18, x_366);
lean_ctor_set(x_368, 19, x_366);
lean_ctor_set(x_368, 20, x_366);
lean_ctor_set(x_368, 21, x_347);
lean_ctor_set_uint8(x_368, sizeof(void*)*22, x_358);
x_369 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__0), 2, 1);
lean_closure_set(x_369, 0, x_368);
x_370 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
x_371 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_370, x_369, x_359);
lean_dec(x_359);
if (lean_obj_tag(x_371) == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; 
if (lean_is_exclusive(x_371)) {
 lean_ctor_release(x_371, 0);
 x_372 = x_371;
} else {
 lean_dec_ref(x_371);
 x_372 = lean_box(0);
}
if (lean_is_scalar(x_338)) {
 x_373 = lean_alloc_ctor(1, 1, 0);
} else {
 x_373 = x_338;
}
lean_ctor_set(x_373, 0, x_365);
if (lean_is_scalar(x_372)) {
 x_374 = lean_alloc_ctor(0, 1, 0);
} else {
 x_374 = x_372;
}
lean_ctor_set(x_374, 0, x_373);
return x_374;
}
else
{
lean_object* x_375; lean_object* x_376; lean_object* x_377; 
lean_dec(x_365);
lean_dec(x_338);
x_375 = lean_ctor_get(x_371, 0);
lean_inc(x_375);
if (lean_is_exclusive(x_371)) {
 lean_ctor_release(x_371, 0);
 x_376 = x_371;
} else {
 lean_dec_ref(x_371);
 x_376 = lean_box(0);
}
if (lean_is_scalar(x_376)) {
 x_377 = lean_alloc_ctor(1, 1, 0);
} else {
 x_377 = x_376;
}
lean_ctor_set(x_377, 0, x_375);
return x_377;
}
}
else
{
lean_object* x_378; lean_object* x_379; lean_object* x_380; 
lean_dec(x_359);
lean_dec(x_357);
lean_dec(x_356);
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_dec(x_352);
lean_dec(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec(x_15);
lean_dec_ref(x_1);
x_378 = lean_ctor_get(x_362, 0);
lean_inc(x_378);
if (lean_is_exclusive(x_362)) {
 lean_ctor_release(x_362, 0);
 x_379 = x_362;
} else {
 lean_dec_ref(x_362);
 x_379 = lean_box(0);
}
if (lean_is_scalar(x_379)) {
 x_380 = lean_alloc_ctor(1, 1, 0);
} else {
 x_380 = x_379;
}
lean_ctor_set(x_380, 0, x_378);
return x_380;
}
}
block_389:
{
lean_object* x_387; uint8_t x_388; 
x_387 = lean_box(0);
x_388 = 0;
lean_inc_n(x_382, 2);
x_353 = x_383;
x_354 = x_382;
x_355 = x_387;
x_356 = x_382;
x_357 = x_382;
x_358 = x_388;
x_359 = x_384;
x_360 = x_385;
x_361 = lean_box(0);
goto block_381;
}
}
else
{
lean_object* x_459; lean_object* x_460; lean_object* x_461; 
lean_dec_ref(x_348);
lean_dec(x_345);
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec_ref(x_332);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_459 = lean_ctor_get(x_351, 0);
lean_inc(x_459);
if (lean_is_exclusive(x_351)) {
 lean_ctor_release(x_351, 0);
 x_460 = x_351;
} else {
 lean_dec_ref(x_351);
 x_460 = lean_box(0);
}
if (lean_is_scalar(x_460)) {
 x_461 = lean_alloc_ctor(1, 1, 0);
} else {
 x_461 = x_460;
}
lean_ctor_set(x_461, 0, x_459);
return x_461;
}
}
else
{
lean_object* x_462; lean_object* x_463; lean_object* x_464; 
lean_dec(x_342);
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec_ref(x_332);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_462 = lean_ctor_get(x_344, 0);
lean_inc(x_462);
if (lean_is_exclusive(x_344)) {
 lean_ctor_release(x_344, 0);
 x_463 = x_344;
} else {
 lean_dec_ref(x_344);
 x_463 = lean_box(0);
}
if (lean_is_scalar(x_463)) {
 x_464 = lean_alloc_ctor(1, 1, 0);
} else {
 x_464 = x_463;
}
lean_ctor_set(x_464, 0, x_462);
return x_464;
}
}
else
{
lean_object* x_465; lean_object* x_466; lean_object* x_467; 
lean_dec(x_340);
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec_ref(x_332);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_465 = lean_ctor_get(x_341, 0);
lean_inc(x_465);
if (lean_is_exclusive(x_341)) {
 lean_ctor_release(x_341, 0);
 x_466 = x_341;
} else {
 lean_dec_ref(x_341);
 x_466 = lean_box(0);
}
if (lean_is_scalar(x_466)) {
 x_467 = lean_alloc_ctor(1, 1, 0);
} else {
 x_467 = x_466;
}
lean_ctor_set(x_467, 0, x_465);
return x_467;
}
}
else
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; 
lean_dec(x_338);
lean_dec(x_337);
lean_dec(x_333);
lean_dec_ref(x_332);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_468 = lean_ctor_get(x_339, 0);
lean_inc(x_468);
if (lean_is_exclusive(x_339)) {
 lean_ctor_release(x_339, 0);
 x_469 = x_339;
} else {
 lean_dec_ref(x_339);
 x_469 = lean_box(0);
}
if (lean_is_scalar(x_469)) {
 x_470 = lean_alloc_ctor(1, 1, 0);
} else {
 x_470 = x_469;
}
lean_ctor_set(x_470, 0, x_468);
return x_470;
}
}
else
{
lean_object* x_471; lean_object* x_472; 
lean_dec(x_335);
lean_dec(x_333);
lean_dec_ref(x_332);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_471 = lean_box(0);
if (lean_is_scalar(x_336)) {
 x_472 = lean_alloc_ctor(0, 1, 0);
} else {
 x_472 = x_336;
}
lean_ctor_set(x_472, 0, x_471);
return x_472;
}
}
else
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; 
lean_dec(x_333);
lean_dec_ref(x_332);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_473 = lean_ctor_get(x_334, 0);
lean_inc(x_473);
if (lean_is_exclusive(x_334)) {
 lean_ctor_release(x_334, 0);
 x_474 = x_334;
} else {
 lean_dec_ref(x_334);
 x_474 = lean_box(0);
}
if (lean_is_scalar(x_474)) {
 x_475 = lean_alloc_ctor(1, 1, 0);
} else {
 x_475 = x_474;
}
lean_ctor_set(x_475, 0, x_473);
return x_475;
}
}
else
{
lean_object* x_476; lean_object* x_477; 
lean_dec(x_332);
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_476 = lean_box(0);
x_477 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_477, 0, x_476);
return x_477;
}
}
}
else
{
uint8_t x_478; 
lean_free_object(x_13);
lean_dec(x_15);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_478 = !lean_is_exclusive(x_17);
if (x_478 == 0)
{
return x_17;
}
else
{
lean_object* x_479; lean_object* x_480; 
x_479 = lean_ctor_get(x_17, 0);
lean_inc(x_479);
lean_dec(x_17);
x_480 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_480, 0, x_479);
return x_480;
}
}
}
else
{
lean_object* x_481; lean_object* x_482; lean_object* x_483; 
x_481 = lean_ctor_get(x_13, 0);
lean_inc(x_481);
lean_dec(x_13);
x_482 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__1;
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
lean_inc(x_481);
x_483 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_482, x_481, x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_ctor_get(x_483, 0);
lean_inc(x_484);
if (lean_is_exclusive(x_483)) {
 lean_ctor_release(x_483, 0);
 x_485 = x_483;
} else {
 lean_dec_ref(x_483);
 x_485 = lean_box(0);
}
if (lean_obj_tag(x_484) == 1)
{
lean_object* x_486; lean_object* x_487; 
lean_dec(x_485);
x_486 = lean_ctor_get(x_484, 0);
lean_inc(x_486);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_484);
lean_inc_ref(x_1);
lean_inc(x_481);
x_487 = l_Lean_Meta_Grind_mkIsPreorderInst_x3f___redArg(x_481, x_1, x_484, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_487) == 0)
{
lean_object* x_488; lean_object* x_489; 
x_488 = lean_ctor_get(x_487, 0);
lean_inc(x_488);
if (lean_is_exclusive(x_487)) {
 lean_ctor_release(x_487, 0);
 x_489 = x_487;
} else {
 lean_dec_ref(x_487);
 x_489 = lean_box(0);
}
if (lean_obj_tag(x_488) == 1)
{
lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_489);
x_490 = lean_ctor_get(x_488, 0);
lean_inc(x_490);
if (lean_is_exclusive(x_488)) {
 lean_ctor_release(x_488, 0);
 x_491 = x_488;
} else {
 lean_dec_ref(x_488);
 x_491 = lean_box(0);
}
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_484);
lean_inc_ref(x_1);
lean_inc(x_481);
x_492 = l_Lean_Meta_Grind_mkIsPartialOrderInst_x3f___redArg(x_481, x_1, x_484, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_492) == 0)
{
lean_object* x_493; lean_object* x_494; 
x_493 = lean_ctor_get(x_492, 0);
lean_inc(x_493);
lean_dec_ref(x_492);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_484);
lean_inc_ref(x_1);
lean_inc(x_481);
x_494 = l_Lean_Meta_Grind_mkIsLinearPreorderInst_x3f___redArg(x_481, x_1, x_484, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_494) == 0)
{
lean_object* x_495; lean_object* x_496; lean_object* x_497; 
x_495 = lean_ctor_get(x_494, 0);
lean_inc(x_495);
lean_dec_ref(x_494);
x_496 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3;
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
lean_inc(x_481);
x_497 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_496, x_481, x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_497) == 0)
{
lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_498 = lean_ctor_get(x_497, 0);
lean_inc(x_498);
lean_dec_ref(x_497);
x_499 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5;
x_500 = lean_box(0);
lean_inc(x_481);
x_501 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_501, 0, x_481);
lean_ctor_set(x_501, 1, x_500);
lean_inc_ref(x_501);
x_502 = l_Lean_mkConst(x_499, x_501);
lean_inc(x_486);
lean_inc_ref(x_1);
x_503 = l_Lean_mkAppB(x_502, x_1, x_486);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_504 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_503, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_504) == 0)
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; 
x_505 = lean_ctor_get(x_504, 0);
lean_inc(x_505);
lean_dec_ref(x_504);
if (lean_obj_tag(x_498) == 1)
{
lean_object* x_543; lean_object* x_544; 
x_543 = lean_ctor_get(x_498, 0);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_498);
lean_inc_ref(x_1);
lean_inc(x_481);
x_544 = l_Lean_Meta_Grind_mkLawfulOrderLTInst_x3f___redArg(x_481, x_1, x_498, x_484, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_544) == 0)
{
lean_object* x_545; 
x_545 = lean_ctor_get(x_544, 0);
lean_inc(x_545);
lean_dec_ref(x_544);
if (lean_obj_tag(x_545) == 0)
{
lean_dec_ref(x_501);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_535 = x_545;
x_536 = x_545;
x_537 = x_2;
x_538 = x_8;
x_539 = lean_box(0);
goto block_542;
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_546 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13;
x_547 = l_Lean_mkConst(x_546, x_501);
lean_inc(x_543);
lean_inc_ref(x_1);
x_548 = l_Lean_mkAppB(x_547, x_1, x_543);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_549 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_548, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_549) == 0)
{
lean_object* x_550; lean_object* x_551; 
x_550 = lean_ctor_get(x_549, 0);
lean_inc(x_550);
lean_dec_ref(x_549);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_551 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_551) == 0)
{
lean_object* x_552; lean_object* x_553; uint8_t x_554; uint8_t x_555; 
x_552 = lean_ctor_get(x_551, 0);
lean_inc(x_552);
lean_dec_ref(x_551);
x_553 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_553, 0, x_550);
x_554 = 0;
x_555 = 1;
if (lean_obj_tag(x_552) == 1)
{
lean_object* x_556; lean_object* x_557; lean_object* x_558; 
x_556 = lean_ctor_get(x_552, 0);
lean_inc(x_556);
x_557 = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(x_557, 0, x_556);
lean_ctor_set_uint8(x_557, sizeof(void*)*1, x_554);
x_558 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_557, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_558) == 0)
{
lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_559 = lean_ctor_get(x_558, 0);
lean_inc(x_559);
lean_dec_ref(x_558);
x_560 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_559, x_557, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_559);
x_561 = lean_ctor_get(x_560, 0);
lean_inc(x_561);
lean_dec_ref(x_560);
x_562 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_557, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_562) == 0)
{
lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; 
x_563 = lean_ctor_get(x_562, 0);
lean_inc(x_563);
lean_dec_ref(x_562);
x_564 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_563, x_557, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_557);
lean_dec(x_563);
x_565 = lean_ctor_get(x_564, 0);
lean_inc(x_565);
if (lean_is_exclusive(x_564)) {
 lean_ctor_release(x_564, 0);
 x_566 = x_564;
} else {
 lean_dec_ref(x_564);
 x_566 = lean_box(0);
}
x_567 = lean_ctor_get(x_561, 3);
lean_inc_ref(x_567);
lean_dec(x_561);
x_568 = lean_ctor_get(x_565, 4);
lean_inc_ref(x_568);
lean_dec(x_565);
lean_inc_ref(x_8);
lean_inc(x_490);
lean_inc(x_543);
lean_inc(x_486);
lean_inc_ref(x_1);
lean_inc(x_481);
x_569 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_481, x_1, x_568, x_486, x_543, x_490, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_569) == 0)
{
lean_object* x_570; 
x_570 = lean_ctor_get(x_569, 0);
lean_inc(x_570);
lean_dec_ref(x_569);
if (lean_obj_tag(x_570) == 1)
{
lean_object* x_571; 
if (lean_is_scalar(x_566)) {
 x_571 = lean_alloc_ctor(1, 1, 0);
} else {
 x_571 = x_566;
 lean_ctor_set_tag(x_571, 1);
}
lean_ctor_set(x_571, 0, x_567);
x_506 = x_553;
x_507 = x_545;
x_508 = x_552;
x_509 = x_571;
x_510 = x_570;
x_511 = x_555;
x_512 = x_2;
x_513 = x_8;
x_514 = lean_box(0);
goto block_534;
}
else
{
lean_object* x_572; 
lean_dec(x_570);
lean_dec_ref(x_567);
lean_dec(x_566);
lean_dec_ref(x_552);
x_572 = lean_box(0);
x_506 = x_553;
x_507 = x_545;
x_508 = x_572;
x_509 = x_572;
x_510 = x_572;
x_511 = x_555;
x_512 = x_2;
x_513 = x_8;
x_514 = lean_box(0);
goto block_534;
}
}
else
{
lean_object* x_573; lean_object* x_574; lean_object* x_575; 
lean_dec_ref(x_567);
lean_dec(x_566);
lean_dec_ref(x_553);
lean_dec_ref(x_552);
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_573 = lean_ctor_get(x_569, 0);
lean_inc(x_573);
if (lean_is_exclusive(x_569)) {
 lean_ctor_release(x_569, 0);
 x_574 = x_569;
} else {
 lean_dec_ref(x_569);
 x_574 = lean_box(0);
}
if (lean_is_scalar(x_574)) {
 x_575 = lean_alloc_ctor(1, 1, 0);
} else {
 x_575 = x_574;
}
lean_ctor_set(x_575, 0, x_573);
return x_575;
}
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; 
lean_dec(x_561);
lean_dec_ref(x_557);
lean_dec_ref(x_553);
lean_dec_ref(x_552);
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_576 = lean_ctor_get(x_562, 0);
lean_inc(x_576);
if (lean_is_exclusive(x_562)) {
 lean_ctor_release(x_562, 0);
 x_577 = x_562;
} else {
 lean_dec_ref(x_562);
 x_577 = lean_box(0);
}
if (lean_is_scalar(x_577)) {
 x_578 = lean_alloc_ctor(1, 1, 0);
} else {
 x_578 = x_577;
}
lean_ctor_set(x_578, 0, x_576);
return x_578;
}
}
else
{
lean_object* x_579; lean_object* x_580; lean_object* x_581; 
lean_dec_ref(x_557);
lean_dec_ref(x_553);
lean_dec_ref(x_552);
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_579 = lean_ctor_get(x_558, 0);
lean_inc(x_579);
if (lean_is_exclusive(x_558)) {
 lean_ctor_release(x_558, 0);
 x_580 = x_558;
} else {
 lean_dec_ref(x_558);
 x_580 = lean_box(0);
}
if (lean_is_scalar(x_580)) {
 x_581 = lean_alloc_ctor(1, 1, 0);
} else {
 x_581 = x_580;
}
lean_ctor_set(x_581, 0, x_579);
return x_581;
}
}
else
{
lean_object* x_582; 
lean_dec(x_552);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_582 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_582) == 0)
{
lean_object* x_583; lean_object* x_584; 
x_583 = lean_ctor_get(x_582, 0);
lean_inc(x_583);
if (lean_is_exclusive(x_582)) {
 lean_ctor_release(x_582, 0);
 x_584 = x_582;
} else {
 lean_dec_ref(x_582);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_583) == 1)
{
lean_object* x_585; lean_object* x_586; 
x_585 = lean_ctor_get(x_583, 0);
x_586 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_585, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_586) == 0)
{
lean_object* x_587; lean_object* x_588; 
x_587 = lean_ctor_get(x_586, 0);
lean_inc(x_587);
lean_dec_ref(x_586);
x_588 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_585, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
if (lean_obj_tag(x_588) == 0)
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_ctor_get(x_588, 0);
lean_inc(x_589);
lean_dec_ref(x_588);
x_590 = lean_ctor_get(x_587, 4);
lean_inc_ref(x_590);
lean_dec(x_587);
x_591 = lean_ctor_get(x_589, 3);
lean_inc_ref(x_591);
lean_dec(x_589);
lean_inc_ref(x_8);
lean_inc(x_490);
lean_inc(x_543);
lean_inc(x_486);
lean_inc_ref(x_1);
lean_inc(x_481);
x_592 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_481, x_1, x_590, x_486, x_543, x_490, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_592) == 0)
{
lean_object* x_593; 
x_593 = lean_ctor_get(x_592, 0);
lean_inc(x_593);
lean_dec_ref(x_592);
if (lean_obj_tag(x_593) == 1)
{
lean_object* x_594; 
if (lean_is_scalar(x_584)) {
 x_594 = lean_alloc_ctor(1, 1, 0);
} else {
 x_594 = x_584;
 lean_ctor_set_tag(x_594, 1);
}
lean_ctor_set(x_594, 0, x_591);
x_506 = x_553;
x_507 = x_545;
x_508 = x_583;
x_509 = x_594;
x_510 = x_593;
x_511 = x_554;
x_512 = x_2;
x_513 = x_8;
x_514 = lean_box(0);
goto block_534;
}
else
{
lean_object* x_595; 
lean_dec(x_593);
lean_dec_ref(x_591);
lean_dec(x_584);
lean_dec_ref(x_583);
x_595 = lean_box(0);
x_506 = x_553;
x_507 = x_545;
x_508 = x_595;
x_509 = x_595;
x_510 = x_595;
x_511 = x_555;
x_512 = x_2;
x_513 = x_8;
x_514 = lean_box(0);
goto block_534;
}
}
else
{
lean_object* x_596; lean_object* x_597; lean_object* x_598; 
lean_dec_ref(x_591);
lean_dec(x_584);
lean_dec_ref(x_583);
lean_dec_ref(x_553);
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_596 = lean_ctor_get(x_592, 0);
lean_inc(x_596);
if (lean_is_exclusive(x_592)) {
 lean_ctor_release(x_592, 0);
 x_597 = x_592;
} else {
 lean_dec_ref(x_592);
 x_597 = lean_box(0);
}
if (lean_is_scalar(x_597)) {
 x_598 = lean_alloc_ctor(1, 1, 0);
} else {
 x_598 = x_597;
}
lean_ctor_set(x_598, 0, x_596);
return x_598;
}
}
else
{
lean_object* x_599; lean_object* x_600; lean_object* x_601; 
lean_dec(x_587);
lean_dec(x_584);
lean_dec_ref(x_583);
lean_dec_ref(x_553);
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_2);
lean_dec_ref(x_1);
x_599 = lean_ctor_get(x_588, 0);
lean_inc(x_599);
if (lean_is_exclusive(x_588)) {
 lean_ctor_release(x_588, 0);
 x_600 = x_588;
} else {
 lean_dec_ref(x_588);
 x_600 = lean_box(0);
}
if (lean_is_scalar(x_600)) {
 x_601 = lean_alloc_ctor(1, 1, 0);
} else {
 x_601 = x_600;
}
lean_ctor_set(x_601, 0, x_599);
return x_601;
}
}
else
{
lean_object* x_602; lean_object* x_603; lean_object* x_604; 
lean_dec(x_584);
lean_dec_ref(x_583);
lean_dec_ref(x_553);
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_602 = lean_ctor_get(x_586, 0);
lean_inc(x_602);
if (lean_is_exclusive(x_586)) {
 lean_ctor_release(x_586, 0);
 x_603 = x_586;
} else {
 lean_dec_ref(x_586);
 x_603 = lean_box(0);
}
if (lean_is_scalar(x_603)) {
 x_604 = lean_alloc_ctor(1, 1, 0);
} else {
 x_604 = x_603;
}
lean_ctor_set(x_604, 0, x_602);
return x_604;
}
}
else
{
lean_object* x_605; 
lean_dec(x_584);
lean_dec(x_583);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_605 = lean_box(0);
x_506 = x_553;
x_507 = x_545;
x_508 = x_605;
x_509 = x_605;
x_510 = x_605;
x_511 = x_554;
x_512 = x_2;
x_513 = x_8;
x_514 = lean_box(0);
goto block_534;
}
}
else
{
lean_dec_ref(x_553);
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_582;
}
}
}
else
{
lean_dec(x_550);
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_551;
}
}
else
{
lean_object* x_606; lean_object* x_607; lean_object* x_608; 
lean_dec_ref(x_545);
lean_dec(x_505);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_606 = lean_ctor_get(x_549, 0);
lean_inc(x_606);
if (lean_is_exclusive(x_549)) {
 lean_ctor_release(x_549, 0);
 x_607 = x_549;
} else {
 lean_dec_ref(x_549);
 x_607 = lean_box(0);
}
if (lean_is_scalar(x_607)) {
 x_608 = lean_alloc_ctor(1, 1, 0);
} else {
 x_608 = x_607;
}
lean_ctor_set(x_608, 0, x_606);
return x_608;
}
}
}
else
{
lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_505);
lean_dec_ref(x_501);
lean_dec_ref(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_609 = lean_ctor_get(x_544, 0);
lean_inc(x_609);
if (lean_is_exclusive(x_544)) {
 lean_ctor_release(x_544, 0);
 x_610 = x_544;
} else {
 lean_dec_ref(x_544);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(1, 1, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_609);
return x_611;
}
}
else
{
lean_object* x_612; 
lean_dec_ref(x_501);
lean_dec_ref(x_484);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_612 = lean_box(0);
x_535 = x_612;
x_536 = x_612;
x_537 = x_2;
x_538 = x_8;
x_539 = lean_box(0);
goto block_542;
}
block_534:
{
lean_object* x_515; 
x_515 = l_Lean_Meta_Grind_Order_get_x27___redArg(x_512, x_513);
lean_dec_ref(x_513);
if (lean_obj_tag(x_515) == 0)
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
x_516 = lean_ctor_get(x_515, 0);
lean_inc(x_516);
lean_dec_ref(x_515);
x_517 = lean_ctor_get(x_516, 0);
lean_inc_ref(x_517);
lean_dec(x_516);
x_518 = lean_array_get_size(x_517);
lean_dec_ref(x_517);
x_519 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8;
x_520 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10;
lean_inc(x_518);
x_521 = lean_alloc_ctor(0, 22, 1);
lean_ctor_set(x_521, 0, x_518);
lean_ctor_set(x_521, 1, x_1);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_490);
lean_ctor_set(x_521, 4, x_486);
lean_ctor_set(x_521, 5, x_498);
lean_ctor_set(x_521, 6, x_493);
lean_ctor_set(x_521, 7, x_495);
lean_ctor_set(x_521, 8, x_507);
lean_ctor_set(x_521, 9, x_508);
lean_ctor_set(x_521, 10, x_509);
lean_ctor_set(x_521, 11, x_510);
lean_ctor_set(x_521, 12, x_505);
lean_ctor_set(x_521, 13, x_506);
lean_ctor_set(x_521, 14, x_519);
lean_ctor_set(x_521, 15, x_520);
lean_ctor_set(x_521, 16, x_520);
lean_ctor_set(x_521, 17, x_520);
lean_ctor_set(x_521, 18, x_519);
lean_ctor_set(x_521, 19, x_519);
lean_ctor_set(x_521, 20, x_519);
lean_ctor_set(x_521, 21, x_500);
lean_ctor_set_uint8(x_521, sizeof(void*)*22, x_511);
x_522 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__0), 2, 1);
lean_closure_set(x_522, 0, x_521);
x_523 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
x_524 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_523, x_522, x_512);
lean_dec(x_512);
if (lean_obj_tag(x_524) == 0)
{
lean_object* x_525; lean_object* x_526; lean_object* x_527; 
if (lean_is_exclusive(x_524)) {
 lean_ctor_release(x_524, 0);
 x_525 = x_524;
} else {
 lean_dec_ref(x_524);
 x_525 = lean_box(0);
}
if (lean_is_scalar(x_491)) {
 x_526 = lean_alloc_ctor(1, 1, 0);
} else {
 x_526 = x_491;
}
lean_ctor_set(x_526, 0, x_518);
if (lean_is_scalar(x_525)) {
 x_527 = lean_alloc_ctor(0, 1, 0);
} else {
 x_527 = x_525;
}
lean_ctor_set(x_527, 0, x_526);
return x_527;
}
else
{
lean_object* x_528; lean_object* x_529; lean_object* x_530; 
lean_dec(x_518);
lean_dec(x_491);
x_528 = lean_ctor_get(x_524, 0);
lean_inc(x_528);
if (lean_is_exclusive(x_524)) {
 lean_ctor_release(x_524, 0);
 x_529 = x_524;
} else {
 lean_dec_ref(x_524);
 x_529 = lean_box(0);
}
if (lean_is_scalar(x_529)) {
 x_530 = lean_alloc_ctor(1, 1, 0);
} else {
 x_530 = x_529;
}
lean_ctor_set(x_530, 0, x_528);
return x_530;
}
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; 
lean_dec(x_512);
lean_dec(x_510);
lean_dec(x_509);
lean_dec(x_508);
lean_dec(x_507);
lean_dec(x_506);
lean_dec(x_505);
lean_dec(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec(x_481);
lean_dec_ref(x_1);
x_531 = lean_ctor_get(x_515, 0);
lean_inc(x_531);
if (lean_is_exclusive(x_515)) {
 lean_ctor_release(x_515, 0);
 x_532 = x_515;
} else {
 lean_dec_ref(x_515);
 x_532 = lean_box(0);
}
if (lean_is_scalar(x_532)) {
 x_533 = lean_alloc_ctor(1, 1, 0);
} else {
 x_533 = x_532;
}
lean_ctor_set(x_533, 0, x_531);
return x_533;
}
}
block_542:
{
lean_object* x_540; uint8_t x_541; 
x_540 = lean_box(0);
x_541 = 0;
lean_inc_n(x_535, 2);
x_506 = x_536;
x_507 = x_535;
x_508 = x_540;
x_509 = x_535;
x_510 = x_535;
x_511 = x_541;
x_512 = x_537;
x_513 = x_538;
x_514 = lean_box(0);
goto block_534;
}
}
else
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; 
lean_dec_ref(x_501);
lean_dec(x_498);
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec_ref(x_484);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_613 = lean_ctor_get(x_504, 0);
lean_inc(x_613);
if (lean_is_exclusive(x_504)) {
 lean_ctor_release(x_504, 0);
 x_614 = x_504;
} else {
 lean_dec_ref(x_504);
 x_614 = lean_box(0);
}
if (lean_is_scalar(x_614)) {
 x_615 = lean_alloc_ctor(1, 1, 0);
} else {
 x_615 = x_614;
}
lean_ctor_set(x_615, 0, x_613);
return x_615;
}
}
else
{
lean_object* x_616; lean_object* x_617; lean_object* x_618; 
lean_dec(x_495);
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec_ref(x_484);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_616 = lean_ctor_get(x_497, 0);
lean_inc(x_616);
if (lean_is_exclusive(x_497)) {
 lean_ctor_release(x_497, 0);
 x_617 = x_497;
} else {
 lean_dec_ref(x_497);
 x_617 = lean_box(0);
}
if (lean_is_scalar(x_617)) {
 x_618 = lean_alloc_ctor(1, 1, 0);
} else {
 x_618 = x_617;
}
lean_ctor_set(x_618, 0, x_616);
return x_618;
}
}
else
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; 
lean_dec(x_493);
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec_ref(x_484);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_619 = lean_ctor_get(x_494, 0);
lean_inc(x_619);
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 x_620 = x_494;
} else {
 lean_dec_ref(x_494);
 x_620 = lean_box(0);
}
if (lean_is_scalar(x_620)) {
 x_621 = lean_alloc_ctor(1, 1, 0);
} else {
 x_621 = x_620;
}
lean_ctor_set(x_621, 0, x_619);
return x_621;
}
}
else
{
lean_object* x_622; lean_object* x_623; lean_object* x_624; 
lean_dec(x_491);
lean_dec(x_490);
lean_dec(x_486);
lean_dec_ref(x_484);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_622 = lean_ctor_get(x_492, 0);
lean_inc(x_622);
if (lean_is_exclusive(x_492)) {
 lean_ctor_release(x_492, 0);
 x_623 = x_492;
} else {
 lean_dec_ref(x_492);
 x_623 = lean_box(0);
}
if (lean_is_scalar(x_623)) {
 x_624 = lean_alloc_ctor(1, 1, 0);
} else {
 x_624 = x_623;
}
lean_ctor_set(x_624, 0, x_622);
return x_624;
}
}
else
{
lean_object* x_625; lean_object* x_626; 
lean_dec(x_488);
lean_dec(x_486);
lean_dec_ref(x_484);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_625 = lean_box(0);
if (lean_is_scalar(x_489)) {
 x_626 = lean_alloc_ctor(0, 1, 0);
} else {
 x_626 = x_489;
}
lean_ctor_set(x_626, 0, x_625);
return x_626;
}
}
else
{
lean_object* x_627; lean_object* x_628; lean_object* x_629; 
lean_dec(x_486);
lean_dec_ref(x_484);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_627 = lean_ctor_get(x_487, 0);
lean_inc(x_627);
if (lean_is_exclusive(x_487)) {
 lean_ctor_release(x_487, 0);
 x_628 = x_487;
} else {
 lean_dec_ref(x_487);
 x_628 = lean_box(0);
}
if (lean_is_scalar(x_628)) {
 x_629 = lean_alloc_ctor(1, 1, 0);
} else {
 x_629 = x_628;
}
lean_ctor_set(x_629, 0, x_627);
return x_629;
}
}
else
{
lean_object* x_630; lean_object* x_631; 
lean_dec(x_484);
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_630 = lean_box(0);
if (lean_is_scalar(x_485)) {
 x_631 = lean_alloc_ctor(0, 1, 0);
} else {
 x_631 = x_485;
}
lean_ctor_set(x_631, 0, x_630);
return x_631;
}
}
else
{
lean_object* x_632; lean_object* x_633; lean_object* x_634; 
lean_dec(x_481);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_632 = lean_ctor_get(x_483, 0);
lean_inc(x_632);
if (lean_is_exclusive(x_483)) {
 lean_ctor_release(x_483, 0);
 x_633 = x_483;
} else {
 lean_dec_ref(x_483);
 x_633 = lean_box(0);
}
if (lean_is_scalar(x_633)) {
 x_634 = lean_alloc_ctor(1, 1, 0);
} else {
 x_634 = x_633;
}
lean_ctor_set(x_634, 0, x_632);
return x_634;
}
}
}
else
{
lean_object* x_635; 
lean_dec(x_13);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_635 = lean_box(0);
lean_ctor_set(x_11, 0, x_635);
return x_11;
}
}
else
{
lean_object* x_636; 
x_636 = lean_ctor_get(x_11, 0);
lean_inc(x_636);
lean_dec(x_11);
if (lean_obj_tag(x_636) == 1)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_636, 0);
lean_inc(x_637);
if (lean_is_exclusive(x_636)) {
 lean_ctor_release(x_636, 0);
 x_638 = x_636;
} else {
 lean_dec_ref(x_636);
 x_638 = lean_box(0);
}
x_639 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__1;
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
lean_inc(x_637);
x_640 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_639, x_637, x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_640) == 0)
{
lean_object* x_641; lean_object* x_642; 
x_641 = lean_ctor_get(x_640, 0);
lean_inc(x_641);
if (lean_is_exclusive(x_640)) {
 lean_ctor_release(x_640, 0);
 x_642 = x_640;
} else {
 lean_dec_ref(x_640);
 x_642 = lean_box(0);
}
if (lean_obj_tag(x_641) == 1)
{
lean_object* x_643; lean_object* x_644; 
lean_dec(x_642);
x_643 = lean_ctor_get(x_641, 0);
lean_inc(x_643);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_641);
lean_inc_ref(x_1);
lean_inc(x_637);
x_644 = l_Lean_Meta_Grind_mkIsPreorderInst_x3f___redArg(x_637, x_1, x_641, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_644) == 0)
{
lean_object* x_645; lean_object* x_646; 
x_645 = lean_ctor_get(x_644, 0);
lean_inc(x_645);
if (lean_is_exclusive(x_644)) {
 lean_ctor_release(x_644, 0);
 x_646 = x_644;
} else {
 lean_dec_ref(x_644);
 x_646 = lean_box(0);
}
if (lean_obj_tag(x_645) == 1)
{
lean_object* x_647; lean_object* x_648; lean_object* x_649; 
lean_dec(x_646);
x_647 = lean_ctor_get(x_645, 0);
lean_inc(x_647);
if (lean_is_exclusive(x_645)) {
 lean_ctor_release(x_645, 0);
 x_648 = x_645;
} else {
 lean_dec_ref(x_645);
 x_648 = lean_box(0);
}
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_641);
lean_inc_ref(x_1);
lean_inc(x_637);
x_649 = l_Lean_Meta_Grind_mkIsPartialOrderInst_x3f___redArg(x_637, x_1, x_641, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_649) == 0)
{
lean_object* x_650; lean_object* x_651; 
x_650 = lean_ctor_get(x_649, 0);
lean_inc(x_650);
lean_dec_ref(x_649);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_641);
lean_inc_ref(x_1);
lean_inc(x_637);
x_651 = l_Lean_Meta_Grind_mkIsLinearPreorderInst_x3f___redArg(x_637, x_1, x_641, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_651) == 0)
{
lean_object* x_652; lean_object* x_653; lean_object* x_654; 
x_652 = lean_ctor_get(x_651, 0);
lean_inc(x_652);
lean_dec_ref(x_651);
x_653 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3;
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_1);
lean_inc(x_637);
x_654 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getInst_x3f___redArg(x_653, x_637, x_1, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_654) == 0)
{
lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; 
x_655 = lean_ctor_get(x_654, 0);
lean_inc(x_655);
lean_dec_ref(x_654);
x_656 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5;
x_657 = lean_box(0);
lean_inc(x_637);
x_658 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_658, 0, x_637);
lean_ctor_set(x_658, 1, x_657);
lean_inc_ref(x_658);
x_659 = l_Lean_mkConst(x_656, x_658);
lean_inc(x_643);
lean_inc_ref(x_1);
x_660 = l_Lean_mkAppB(x_659, x_1, x_643);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_661 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_660, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_661) == 0)
{
lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; uint8_t x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_662 = lean_ctor_get(x_661, 0);
lean_inc(x_662);
lean_dec_ref(x_661);
if (lean_obj_tag(x_655) == 1)
{
lean_object* x_700; lean_object* x_701; 
x_700 = lean_ctor_get(x_655, 0);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_655);
lean_inc_ref(x_1);
lean_inc(x_637);
x_701 = l_Lean_Meta_Grind_mkLawfulOrderLTInst_x3f___redArg(x_637, x_1, x_655, x_641, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_701) == 0)
{
lean_object* x_702; 
x_702 = lean_ctor_get(x_701, 0);
lean_inc(x_702);
lean_dec_ref(x_701);
if (lean_obj_tag(x_702) == 0)
{
lean_dec_ref(x_658);
lean_dec(x_638);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_692 = x_702;
x_693 = x_702;
x_694 = x_2;
x_695 = x_8;
x_696 = lean_box(0);
goto block_699;
}
else
{
lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; 
x_703 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13;
x_704 = l_Lean_mkConst(x_703, x_658);
lean_inc(x_700);
lean_inc_ref(x_1);
x_705 = l_Lean_mkAppB(x_704, x_1, x_700);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_706 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_preprocess(x_705, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_706) == 0)
{
lean_object* x_707; lean_object* x_708; 
x_707 = lean_ctor_get(x_706, 0);
lean_inc(x_707);
lean_dec_ref(x_706);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_708 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_708) == 0)
{
lean_object* x_709; lean_object* x_710; uint8_t x_711; uint8_t x_712; 
x_709 = lean_ctor_get(x_708, 0);
lean_inc(x_709);
lean_dec_ref(x_708);
if (lean_is_scalar(x_638)) {
 x_710 = lean_alloc_ctor(1, 1, 0);
} else {
 x_710 = x_638;
}
lean_ctor_set(x_710, 0, x_707);
x_711 = 0;
x_712 = 1;
if (lean_obj_tag(x_709) == 1)
{
lean_object* x_713; lean_object* x_714; lean_object* x_715; 
x_713 = lean_ctor_get(x_709, 0);
lean_inc(x_713);
x_714 = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set_uint8(x_714, sizeof(void*)*1, x_711);
x_715 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_714, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_715) == 0)
{
lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; 
x_716 = lean_ctor_get(x_715, 0);
lean_inc(x_716);
lean_dec_ref(x_715);
x_717 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_716, x_714, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_716);
x_718 = lean_ctor_get(x_717, 0);
lean_inc(x_718);
lean_dec_ref(x_717);
x_719 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_714, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_719) == 0)
{
lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; 
x_720 = lean_ctor_get(x_719, 0);
lean_inc(x_720);
lean_dec_ref(x_719);
x_721 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_720, x_714, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_714);
lean_dec(x_720);
x_722 = lean_ctor_get(x_721, 0);
lean_inc(x_722);
if (lean_is_exclusive(x_721)) {
 lean_ctor_release(x_721, 0);
 x_723 = x_721;
} else {
 lean_dec_ref(x_721);
 x_723 = lean_box(0);
}
x_724 = lean_ctor_get(x_718, 3);
lean_inc_ref(x_724);
lean_dec(x_718);
x_725 = lean_ctor_get(x_722, 4);
lean_inc_ref(x_725);
lean_dec(x_722);
lean_inc_ref(x_8);
lean_inc(x_647);
lean_inc(x_700);
lean_inc(x_643);
lean_inc_ref(x_1);
lean_inc(x_637);
x_726 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_637, x_1, x_725, x_643, x_700, x_647, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_726) == 0)
{
lean_object* x_727; 
x_727 = lean_ctor_get(x_726, 0);
lean_inc(x_727);
lean_dec_ref(x_726);
if (lean_obj_tag(x_727) == 1)
{
lean_object* x_728; 
if (lean_is_scalar(x_723)) {
 x_728 = lean_alloc_ctor(1, 1, 0);
} else {
 x_728 = x_723;
 lean_ctor_set_tag(x_728, 1);
}
lean_ctor_set(x_728, 0, x_724);
x_663 = x_710;
x_664 = x_702;
x_665 = x_709;
x_666 = x_728;
x_667 = x_727;
x_668 = x_712;
x_669 = x_2;
x_670 = x_8;
x_671 = lean_box(0);
goto block_691;
}
else
{
lean_object* x_729; 
lean_dec(x_727);
lean_dec_ref(x_724);
lean_dec(x_723);
lean_dec_ref(x_709);
x_729 = lean_box(0);
x_663 = x_710;
x_664 = x_702;
x_665 = x_729;
x_666 = x_729;
x_667 = x_729;
x_668 = x_712;
x_669 = x_2;
x_670 = x_8;
x_671 = lean_box(0);
goto block_691;
}
}
else
{
lean_object* x_730; lean_object* x_731; lean_object* x_732; 
lean_dec_ref(x_724);
lean_dec(x_723);
lean_dec_ref(x_710);
lean_dec_ref(x_709);
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_637);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_730 = lean_ctor_get(x_726, 0);
lean_inc(x_730);
if (lean_is_exclusive(x_726)) {
 lean_ctor_release(x_726, 0);
 x_731 = x_726;
} else {
 lean_dec_ref(x_726);
 x_731 = lean_box(0);
}
if (lean_is_scalar(x_731)) {
 x_732 = lean_alloc_ctor(1, 1, 0);
} else {
 x_732 = x_731;
}
lean_ctor_set(x_732, 0, x_730);
return x_732;
}
}
else
{
lean_object* x_733; lean_object* x_734; lean_object* x_735; 
lean_dec(x_718);
lean_dec_ref(x_714);
lean_dec_ref(x_710);
lean_dec_ref(x_709);
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_733 = lean_ctor_get(x_719, 0);
lean_inc(x_733);
if (lean_is_exclusive(x_719)) {
 lean_ctor_release(x_719, 0);
 x_734 = x_719;
} else {
 lean_dec_ref(x_719);
 x_734 = lean_box(0);
}
if (lean_is_scalar(x_734)) {
 x_735 = lean_alloc_ctor(1, 1, 0);
} else {
 x_735 = x_734;
}
lean_ctor_set(x_735, 0, x_733);
return x_735;
}
}
else
{
lean_object* x_736; lean_object* x_737; lean_object* x_738; 
lean_dec_ref(x_714);
lean_dec_ref(x_710);
lean_dec_ref(x_709);
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_736 = lean_ctor_get(x_715, 0);
lean_inc(x_736);
if (lean_is_exclusive(x_715)) {
 lean_ctor_release(x_715, 0);
 x_737 = x_715;
} else {
 lean_dec_ref(x_715);
 x_737 = lean_box(0);
}
if (lean_is_scalar(x_737)) {
 x_738 = lean_alloc_ctor(1, 1, 0);
} else {
 x_738 = x_737;
}
lean_ctor_set(x_738, 0, x_736);
return x_738;
}
}
else
{
lean_object* x_739; 
lean_dec(x_709);
lean_inc(x_9);
lean_inc_ref(x_8);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc(x_5);
lean_inc_ref(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_739 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_739) == 0)
{
lean_object* x_740; lean_object* x_741; 
x_740 = lean_ctor_get(x_739, 0);
lean_inc(x_740);
if (lean_is_exclusive(x_739)) {
 lean_ctor_release(x_739, 0);
 x_741 = x_739;
} else {
 lean_dec_ref(x_739);
 x_741 = lean_box(0);
}
if (lean_obj_tag(x_740) == 1)
{
lean_object* x_742; lean_object* x_743; 
x_742 = lean_ctor_get(x_740, 0);
x_743 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_742, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_743) == 0)
{
lean_object* x_744; lean_object* x_745; 
x_744 = lean_ctor_get(x_743, 0);
lean_inc(x_744);
lean_dec_ref(x_743);
x_745 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(x_742, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
if (lean_obj_tag(x_745) == 0)
{
lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; 
x_746 = lean_ctor_get(x_745, 0);
lean_inc(x_746);
lean_dec_ref(x_745);
x_747 = lean_ctor_get(x_744, 4);
lean_inc_ref(x_747);
lean_dec(x_744);
x_748 = lean_ctor_get(x_746, 3);
lean_inc_ref(x_748);
lean_dec(x_746);
lean_inc_ref(x_8);
lean_inc(x_647);
lean_inc(x_700);
lean_inc(x_643);
lean_inc_ref(x_1);
lean_inc(x_637);
x_749 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg(x_637, x_1, x_747, x_643, x_700, x_647, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_749) == 0)
{
lean_object* x_750; 
x_750 = lean_ctor_get(x_749, 0);
lean_inc(x_750);
lean_dec_ref(x_749);
if (lean_obj_tag(x_750) == 1)
{
lean_object* x_751; 
if (lean_is_scalar(x_741)) {
 x_751 = lean_alloc_ctor(1, 1, 0);
} else {
 x_751 = x_741;
 lean_ctor_set_tag(x_751, 1);
}
lean_ctor_set(x_751, 0, x_748);
x_663 = x_710;
x_664 = x_702;
x_665 = x_740;
x_666 = x_751;
x_667 = x_750;
x_668 = x_711;
x_669 = x_2;
x_670 = x_8;
x_671 = lean_box(0);
goto block_691;
}
else
{
lean_object* x_752; 
lean_dec(x_750);
lean_dec_ref(x_748);
lean_dec(x_741);
lean_dec_ref(x_740);
x_752 = lean_box(0);
x_663 = x_710;
x_664 = x_702;
x_665 = x_752;
x_666 = x_752;
x_667 = x_752;
x_668 = x_712;
x_669 = x_2;
x_670 = x_8;
x_671 = lean_box(0);
goto block_691;
}
}
else
{
lean_object* x_753; lean_object* x_754; lean_object* x_755; 
lean_dec_ref(x_748);
lean_dec(x_741);
lean_dec_ref(x_740);
lean_dec_ref(x_710);
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_637);
lean_dec_ref(x_8);
lean_dec(x_2);
lean_dec_ref(x_1);
x_753 = lean_ctor_get(x_749, 0);
lean_inc(x_753);
if (lean_is_exclusive(x_749)) {
 lean_ctor_release(x_749, 0);
 x_754 = x_749;
} else {
 lean_dec_ref(x_749);
 x_754 = lean_box(0);
}
if (lean_is_scalar(x_754)) {
 x_755 = lean_alloc_ctor(1, 1, 0);
} else {
 x_755 = x_754;
}
lean_ctor_set(x_755, 0, x_753);
return x_755;
}
}
else
{
lean_object* x_756; lean_object* x_757; lean_object* x_758; 
lean_dec(x_744);
lean_dec(x_741);
lean_dec_ref(x_740);
lean_dec_ref(x_710);
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_2);
lean_dec_ref(x_1);
x_756 = lean_ctor_get(x_745, 0);
lean_inc(x_756);
if (lean_is_exclusive(x_745)) {
 lean_ctor_release(x_745, 0);
 x_757 = x_745;
} else {
 lean_dec_ref(x_745);
 x_757 = lean_box(0);
}
if (lean_is_scalar(x_757)) {
 x_758 = lean_alloc_ctor(1, 1, 0);
} else {
 x_758 = x_757;
}
lean_ctor_set(x_758, 0, x_756);
return x_758;
}
}
else
{
lean_object* x_759; lean_object* x_760; lean_object* x_761; 
lean_dec(x_741);
lean_dec_ref(x_740);
lean_dec_ref(x_710);
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_759 = lean_ctor_get(x_743, 0);
lean_inc(x_759);
if (lean_is_exclusive(x_743)) {
 lean_ctor_release(x_743, 0);
 x_760 = x_743;
} else {
 lean_dec_ref(x_743);
 x_760 = lean_box(0);
}
if (lean_is_scalar(x_760)) {
 x_761 = lean_alloc_ctor(1, 1, 0);
} else {
 x_761 = x_760;
}
lean_ctor_set(x_761, 0, x_759);
return x_761;
}
}
else
{
lean_object* x_762; 
lean_dec(x_741);
lean_dec(x_740);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_762 = lean_box(0);
x_663 = x_710;
x_664 = x_702;
x_665 = x_762;
x_666 = x_762;
x_667 = x_762;
x_668 = x_711;
x_669 = x_2;
x_670 = x_8;
x_671 = lean_box(0);
goto block_691;
}
}
else
{
lean_dec_ref(x_710);
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_739;
}
}
}
else
{
lean_dec(x_707);
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_708;
}
}
else
{
lean_object* x_763; lean_object* x_764; lean_object* x_765; 
lean_dec_ref(x_702);
lean_dec(x_662);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_763 = lean_ctor_get(x_706, 0);
lean_inc(x_763);
if (lean_is_exclusive(x_706)) {
 lean_ctor_release(x_706, 0);
 x_764 = x_706;
} else {
 lean_dec_ref(x_706);
 x_764 = lean_box(0);
}
if (lean_is_scalar(x_764)) {
 x_765 = lean_alloc_ctor(1, 1, 0);
} else {
 x_765 = x_764;
}
lean_ctor_set(x_765, 0, x_763);
return x_765;
}
}
}
else
{
lean_object* x_766; lean_object* x_767; lean_object* x_768; 
lean_dec(x_662);
lean_dec_ref(x_658);
lean_dec_ref(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_766 = lean_ctor_get(x_701, 0);
lean_inc(x_766);
if (lean_is_exclusive(x_701)) {
 lean_ctor_release(x_701, 0);
 x_767 = x_701;
} else {
 lean_dec_ref(x_701);
 x_767 = lean_box(0);
}
if (lean_is_scalar(x_767)) {
 x_768 = lean_alloc_ctor(1, 1, 0);
} else {
 x_768 = x_767;
}
lean_ctor_set(x_768, 0, x_766);
return x_768;
}
}
else
{
lean_object* x_769; 
lean_dec_ref(x_658);
lean_dec_ref(x_641);
lean_dec(x_638);
lean_dec(x_9);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_769 = lean_box(0);
x_692 = x_769;
x_693 = x_769;
x_694 = x_2;
x_695 = x_8;
x_696 = lean_box(0);
goto block_699;
}
block_691:
{
lean_object* x_672; 
x_672 = l_Lean_Meta_Grind_Order_get_x27___redArg(x_669, x_670);
lean_dec_ref(x_670);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; 
x_673 = lean_ctor_get(x_672, 0);
lean_inc(x_673);
lean_dec_ref(x_672);
x_674 = lean_ctor_get(x_673, 0);
lean_inc_ref(x_674);
lean_dec(x_673);
x_675 = lean_array_get_size(x_674);
lean_dec_ref(x_674);
x_676 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8;
x_677 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10;
lean_inc(x_675);
x_678 = lean_alloc_ctor(0, 22, 1);
lean_ctor_set(x_678, 0, x_675);
lean_ctor_set(x_678, 1, x_1);
lean_ctor_set(x_678, 2, x_637);
lean_ctor_set(x_678, 3, x_647);
lean_ctor_set(x_678, 4, x_643);
lean_ctor_set(x_678, 5, x_655);
lean_ctor_set(x_678, 6, x_650);
lean_ctor_set(x_678, 7, x_652);
lean_ctor_set(x_678, 8, x_664);
lean_ctor_set(x_678, 9, x_665);
lean_ctor_set(x_678, 10, x_666);
lean_ctor_set(x_678, 11, x_667);
lean_ctor_set(x_678, 12, x_662);
lean_ctor_set(x_678, 13, x_663);
lean_ctor_set(x_678, 14, x_676);
lean_ctor_set(x_678, 15, x_677);
lean_ctor_set(x_678, 16, x_677);
lean_ctor_set(x_678, 17, x_677);
lean_ctor_set(x_678, 18, x_676);
lean_ctor_set(x_678, 19, x_676);
lean_ctor_set(x_678, 20, x_676);
lean_ctor_set(x_678, 21, x_657);
lean_ctor_set_uint8(x_678, sizeof(void*)*22, x_668);
x_679 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__0), 2, 1);
lean_closure_set(x_679, 0, x_678);
x_680 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
x_681 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_680, x_679, x_669);
lean_dec(x_669);
if (lean_obj_tag(x_681) == 0)
{
lean_object* x_682; lean_object* x_683; lean_object* x_684; 
if (lean_is_exclusive(x_681)) {
 lean_ctor_release(x_681, 0);
 x_682 = x_681;
} else {
 lean_dec_ref(x_681);
 x_682 = lean_box(0);
}
if (lean_is_scalar(x_648)) {
 x_683 = lean_alloc_ctor(1, 1, 0);
} else {
 x_683 = x_648;
}
lean_ctor_set(x_683, 0, x_675);
if (lean_is_scalar(x_682)) {
 x_684 = lean_alloc_ctor(0, 1, 0);
} else {
 x_684 = x_682;
}
lean_ctor_set(x_684, 0, x_683);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; 
lean_dec(x_675);
lean_dec(x_648);
x_685 = lean_ctor_get(x_681, 0);
lean_inc(x_685);
if (lean_is_exclusive(x_681)) {
 lean_ctor_release(x_681, 0);
 x_686 = x_681;
} else {
 lean_dec_ref(x_681);
 x_686 = lean_box(0);
}
if (lean_is_scalar(x_686)) {
 x_687 = lean_alloc_ctor(1, 1, 0);
} else {
 x_687 = x_686;
}
lean_ctor_set(x_687, 0, x_685);
return x_687;
}
}
else
{
lean_object* x_688; lean_object* x_689; lean_object* x_690; 
lean_dec(x_669);
lean_dec(x_667);
lean_dec(x_666);
lean_dec(x_665);
lean_dec(x_664);
lean_dec(x_663);
lean_dec(x_662);
lean_dec(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec(x_637);
lean_dec_ref(x_1);
x_688 = lean_ctor_get(x_672, 0);
lean_inc(x_688);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 x_689 = x_672;
} else {
 lean_dec_ref(x_672);
 x_689 = lean_box(0);
}
if (lean_is_scalar(x_689)) {
 x_690 = lean_alloc_ctor(1, 1, 0);
} else {
 x_690 = x_689;
}
lean_ctor_set(x_690, 0, x_688);
return x_690;
}
}
block_699:
{
lean_object* x_697; uint8_t x_698; 
x_697 = lean_box(0);
x_698 = 0;
lean_inc_n(x_692, 2);
x_663 = x_693;
x_664 = x_692;
x_665 = x_697;
x_666 = x_692;
x_667 = x_692;
x_668 = x_698;
x_669 = x_694;
x_670 = x_695;
x_671 = lean_box(0);
goto block_691;
}
}
else
{
lean_object* x_770; lean_object* x_771; lean_object* x_772; 
lean_dec_ref(x_658);
lean_dec(x_655);
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec_ref(x_641);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_770 = lean_ctor_get(x_661, 0);
lean_inc(x_770);
if (lean_is_exclusive(x_661)) {
 lean_ctor_release(x_661, 0);
 x_771 = x_661;
} else {
 lean_dec_ref(x_661);
 x_771 = lean_box(0);
}
if (lean_is_scalar(x_771)) {
 x_772 = lean_alloc_ctor(1, 1, 0);
} else {
 x_772 = x_771;
}
lean_ctor_set(x_772, 0, x_770);
return x_772;
}
}
else
{
lean_object* x_773; lean_object* x_774; lean_object* x_775; 
lean_dec(x_652);
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec_ref(x_641);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_773 = lean_ctor_get(x_654, 0);
lean_inc(x_773);
if (lean_is_exclusive(x_654)) {
 lean_ctor_release(x_654, 0);
 x_774 = x_654;
} else {
 lean_dec_ref(x_654);
 x_774 = lean_box(0);
}
if (lean_is_scalar(x_774)) {
 x_775 = lean_alloc_ctor(1, 1, 0);
} else {
 x_775 = x_774;
}
lean_ctor_set(x_775, 0, x_773);
return x_775;
}
}
else
{
lean_object* x_776; lean_object* x_777; lean_object* x_778; 
lean_dec(x_650);
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec_ref(x_641);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_776 = lean_ctor_get(x_651, 0);
lean_inc(x_776);
if (lean_is_exclusive(x_651)) {
 lean_ctor_release(x_651, 0);
 x_777 = x_651;
} else {
 lean_dec_ref(x_651);
 x_777 = lean_box(0);
}
if (lean_is_scalar(x_777)) {
 x_778 = lean_alloc_ctor(1, 1, 0);
} else {
 x_778 = x_777;
}
lean_ctor_set(x_778, 0, x_776);
return x_778;
}
}
else
{
lean_object* x_779; lean_object* x_780; lean_object* x_781; 
lean_dec(x_648);
lean_dec(x_647);
lean_dec(x_643);
lean_dec_ref(x_641);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_779 = lean_ctor_get(x_649, 0);
lean_inc(x_779);
if (lean_is_exclusive(x_649)) {
 lean_ctor_release(x_649, 0);
 x_780 = x_649;
} else {
 lean_dec_ref(x_649);
 x_780 = lean_box(0);
}
if (lean_is_scalar(x_780)) {
 x_781 = lean_alloc_ctor(1, 1, 0);
} else {
 x_781 = x_780;
}
lean_ctor_set(x_781, 0, x_779);
return x_781;
}
}
else
{
lean_object* x_782; lean_object* x_783; 
lean_dec(x_645);
lean_dec(x_643);
lean_dec_ref(x_641);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_782 = lean_box(0);
if (lean_is_scalar(x_646)) {
 x_783 = lean_alloc_ctor(0, 1, 0);
} else {
 x_783 = x_646;
}
lean_ctor_set(x_783, 0, x_782);
return x_783;
}
}
else
{
lean_object* x_784; lean_object* x_785; lean_object* x_786; 
lean_dec(x_643);
lean_dec_ref(x_641);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_784 = lean_ctor_get(x_644, 0);
lean_inc(x_784);
if (lean_is_exclusive(x_644)) {
 lean_ctor_release(x_644, 0);
 x_785 = x_644;
} else {
 lean_dec_ref(x_644);
 x_785 = lean_box(0);
}
if (lean_is_scalar(x_785)) {
 x_786 = lean_alloc_ctor(1, 1, 0);
} else {
 x_786 = x_785;
}
lean_ctor_set(x_786, 0, x_784);
return x_786;
}
}
else
{
lean_object* x_787; lean_object* x_788; 
lean_dec(x_641);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_787 = lean_box(0);
if (lean_is_scalar(x_642)) {
 x_788 = lean_alloc_ctor(0, 1, 0);
} else {
 x_788 = x_642;
}
lean_ctor_set(x_788, 0, x_787);
return x_788;
}
}
else
{
lean_object* x_789; lean_object* x_790; lean_object* x_791; 
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_789 = lean_ctor_get(x_640, 0);
lean_inc(x_789);
if (lean_is_exclusive(x_640)) {
 lean_ctor_release(x_640, 0);
 x_790 = x_640;
} else {
 lean_dec_ref(x_640);
 x_790 = lean_box(0);
}
if (lean_is_scalar(x_790)) {
 x_791 = lean_alloc_ctor(1, 1, 0);
} else {
 x_791 = x_790;
}
lean_ctor_set(x_791, 0, x_789);
return x_791;
}
}
else
{
lean_object* x_792; lean_object* x_793; 
lean_dec(x_636);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_792 = lean_box(0);
x_793 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_793, 0, x_792);
return x_793;
}
}
}
else
{
uint8_t x_794; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_794 = !lean_is_exclusive(x_11);
if (x_794 == 0)
{
return x_11;
}
else
{
lean_object* x_795; lean_object* x_796; 
x_795 = lean_ctor_get(x_11, 0);
lean_inc(x_795);
lean_dec(x_11);
x_796 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_796, 0, x_795);
return x_796;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___lam__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec(x_8);
lean_dec_ref(x_7);
lean_dec(x_6);
lean_dec_ref(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_11;
}
}
static size_t _init_l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__0() {
_start:
{
size_t x_1; size_t x_2; size_t x_3; 
x_1 = 5;
x_2 = 1;
x_3 = lean_usize_shift_left(x_2, x_1);
return x_3;
}
}
static size_t _init_l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__1() {
_start:
{
size_t x_1; size_t x_2; size_t x_3; 
x_1 = 1;
x_2 = l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__0;
x_3 = lean_usize_sub(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_array_get_size(x_1);
x_6 = lean_nat_dec_lt(x_3, x_5);
lean_dec(x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_3);
x_7 = lean_box(0);
return x_7;
}
else
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_array_fget_borrowed(x_1, x_3);
x_9 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_unsigned_to_nat(1u);
x_11 = lean_nat_add(x_3, x_10);
lean_dec(x_3);
x_3 = x_11;
goto _start;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_array_fget_borrowed(x_2, x_3);
lean_dec(x_3);
lean_inc(x_13);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg(lean_object* x_1, size_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_1);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_box(2);
x_7 = 5;
x_8 = l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__1;
x_9 = lean_usize_land(x_2, x_8);
x_10 = lean_usize_to_nat(x_9);
x_11 = lean_array_get(x_6, x_5, x_10);
lean_dec(x_10);
lean_dec_ref(x_5);
switch (lean_obj_tag(x_11)) {
case 0:
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec_ref(x_11);
x_14 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_12);
lean_dec(x_12);
if (x_14 == 0)
{
lean_object* x_15; 
lean_dec(x_13);
lean_free_object(x_1);
x_15 = lean_box(0);
return x_15;
}
else
{
lean_ctor_set_tag(x_1, 1);
lean_ctor_set(x_1, 0, x_13);
return x_1;
}
}
case 1:
{
lean_object* x_16; size_t x_17; 
lean_free_object(x_1);
x_16 = lean_ctor_get(x_11, 0);
lean_inc(x_16);
lean_dec_ref(x_11);
x_17 = lean_usize_shift_right(x_2, x_7);
x_1 = x_16;
x_2 = x_17;
goto _start;
}
default: 
{
lean_object* x_19; 
lean_free_object(x_1);
x_19 = lean_box(0);
return x_19;
}
}
}
else
{
lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; 
x_20 = lean_ctor_get(x_1, 0);
lean_inc(x_20);
lean_dec(x_1);
x_21 = lean_box(2);
x_22 = 5;
x_23 = l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__1;
x_24 = lean_usize_land(x_2, x_23);
x_25 = lean_usize_to_nat(x_24);
x_26 = lean_array_get(x_21, x_20, x_25);
lean_dec(x_25);
lean_dec_ref(x_20);
switch (lean_obj_tag(x_26)) {
case 0:
{
lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_26, 1);
lean_inc(x_28);
lean_dec_ref(x_26);
x_29 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_27);
lean_dec(x_27);
if (x_29 == 0)
{
lean_object* x_30; 
lean_dec(x_28);
x_30 = lean_box(0);
return x_30;
}
else
{
lean_object* x_31; 
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_28);
return x_31;
}
}
case 1:
{
lean_object* x_32; size_t x_33; 
x_32 = lean_ctor_get(x_26, 0);
lean_inc(x_32);
lean_dec_ref(x_26);
x_33 = lean_usize_shift_right(x_2, x_22);
x_1 = x_32;
x_2 = x_33;
goto _start;
}
default: 
{
lean_object* x_35; 
x_35 = lean_box(0);
return x_35;
}
}
}
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_36);
x_37 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_37);
lean_dec_ref(x_1);
x_38 = lean_unsigned_to_nat(0u);
x_39 = l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___redArg(x_36, x_37, x_38, x_3);
lean_dec_ref(x_37);
lean_dec_ref(x_36);
return x_39;
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; size_t x_4; lean_object* x_5; 
x_3 = l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(x_2);
x_4 = lean_uint64_to_usize(x_3);
x_5 = l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg(x_1, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___redArg(x_2, x_3, x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_1);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_6 = lean_ctor_get(x_1, 0);
x_7 = lean_ctor_get(x_1, 1);
x_8 = lean_array_get_size(x_6);
x_9 = lean_nat_dec_lt(x_2, x_8);
lean_dec(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; 
lean_dec(x_2);
x_10 = lean_array_push(x_6, x_3);
x_11 = lean_array_push(x_7, x_4);
lean_ctor_set(x_1, 1, x_11);
lean_ctor_set(x_1, 0, x_10);
return x_1;
}
else
{
lean_object* x_12; uint8_t x_13; 
x_12 = lean_array_fget_borrowed(x_6, x_2);
x_13 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_2, x_14);
lean_dec(x_2);
x_2 = x_15;
goto _start;
}
else
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_array_fset(x_6, x_2, x_3);
x_18 = lean_array_fset(x_7, x_2, x_4);
lean_dec(x_2);
lean_ctor_set(x_1, 1, x_18);
lean_ctor_set(x_1, 0, x_17);
return x_1;
}
}
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_19 = lean_ctor_get(x_1, 0);
x_20 = lean_ctor_get(x_1, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_1);
x_21 = lean_array_get_size(x_19);
x_22 = lean_nat_dec_lt(x_2, x_21);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_2);
x_23 = lean_array_push(x_19, x_3);
x_24 = lean_array_push(x_20, x_4);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
else
{
lean_object* x_26; uint8_t x_27; 
x_26 = lean_array_fget_borrowed(x_19, x_2);
x_27 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_26);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_19);
lean_ctor_set(x_28, 1, x_20);
x_29 = lean_unsigned_to_nat(1u);
x_30 = lean_nat_add(x_2, x_29);
lean_dec(x_2);
x_1 = x_28;
x_2 = x_30;
goto _start;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_array_fset(x_19, x_2, x_3);
x_33 = lean_array_fset(x_20, x_2, x_4);
lean_dec(x_2);
x_34 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_34, 0, x_32);
lean_ctor_set(x_34, 1, x_33);
return x_34;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3_spec__3___redArg(x_1, x_4, x_2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntries(lean_box(0), lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___redArg(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_array_get_size(x_2);
x_7 = lean_nat_dec_lt(x_4, x_6);
lean_dec(x_6);
if (x_7 == 0)
{
lean_dec(x_4);
return x_5;
}
else
{
lean_object* x_8; lean_object* x_9; uint64_t x_10; size_t x_11; size_t x_12; lean_object* x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; 
x_8 = lean_array_fget_borrowed(x_2, x_4);
x_9 = lean_array_fget_borrowed(x_3, x_4);
x_10 = l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(x_8);
x_11 = lean_uint64_to_usize(x_10);
x_12 = 5;
x_13 = lean_unsigned_to_nat(1u);
x_14 = 1;
x_15 = lean_usize_sub(x_1, x_14);
x_16 = lean_usize_mul(x_12, x_15);
x_17 = lean_usize_shift_right(x_11, x_16);
x_18 = lean_nat_add(x_4, x_13);
lean_dec(x_4);
lean_inc(x_9);
lean_inc(x_8);
x_19 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg(x_5, x_17, x_1, x_8, x_9);
x_4 = x_18;
x_5 = x_19;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_6 = lean_ctor_get(x_1, 0);
x_7 = 5;
x_8 = 1;
x_9 = l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__1;
x_10 = lean_usize_land(x_2, x_9);
x_11 = lean_usize_to_nat(x_10);
x_12 = lean_array_get_size(x_6);
x_13 = lean_nat_dec_lt(x_11, x_12);
lean_dec(x_12);
if (x_13 == 0)
{
lean_dec(x_11);
lean_dec(x_5);
lean_dec_ref(x_4);
return x_1;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_inc_ref(x_6);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 x_14 = x_1;
} else {
 lean_dec_ref(x_1);
 x_14 = lean_box(0);
}
x_15 = lean_array_fget(x_6, x_11);
x_16 = lean_box(0);
x_17 = lean_array_fset(x_6, x_11, x_16);
switch (lean_obj_tag(x_15)) {
case 0:
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_15);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_23 = lean_ctor_get(x_15, 0);
x_24 = lean_ctor_get(x_15, 1);
x_25 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_23);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; 
lean_free_object(x_15);
x_26 = l_Lean_PersistentHashMap_mkCollisionNode___redArg(x_23, x_24, x_4, x_5);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
x_18 = x_27;
goto block_21;
}
else
{
lean_dec(x_24);
lean_dec(x_23);
lean_ctor_set(x_15, 1, x_5);
lean_ctor_set(x_15, 0, x_4);
x_18 = x_15;
goto block_21;
}
}
else
{
lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_28 = lean_ctor_get(x_15, 0);
x_29 = lean_ctor_get(x_15, 1);
lean_inc(x_29);
lean_inc(x_28);
lean_dec(x_15);
x_30 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_28);
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; 
x_31 = l_Lean_PersistentHashMap_mkCollisionNode___redArg(x_28, x_29, x_4, x_5);
x_32 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_32, 0, x_31);
x_18 = x_32;
goto block_21;
}
else
{
lean_object* x_33; 
lean_dec(x_29);
lean_dec(x_28);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_4);
lean_ctor_set(x_33, 1, x_5);
x_18 = x_33;
goto block_21;
}
}
}
case 1:
{
uint8_t x_34; 
x_34 = !lean_is_exclusive(x_15);
if (x_34 == 0)
{
lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; 
x_35 = lean_ctor_get(x_15, 0);
x_36 = lean_usize_shift_right(x_2, x_7);
x_37 = lean_usize_add(x_3, x_8);
x_38 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg(x_35, x_36, x_37, x_4, x_5);
lean_ctor_set(x_15, 0, x_38);
x_18 = x_15;
goto block_21;
}
else
{
lean_object* x_39; size_t x_40; size_t x_41; lean_object* x_42; lean_object* x_43; 
x_39 = lean_ctor_get(x_15, 0);
lean_inc(x_39);
lean_dec(x_15);
x_40 = lean_usize_shift_right(x_2, x_7);
x_41 = lean_usize_add(x_3, x_8);
x_42 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg(x_39, x_40, x_41, x_4, x_5);
x_43 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_43, 0, x_42);
x_18 = x_43;
goto block_21;
}
}
default: 
{
lean_object* x_44; 
x_44 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_44, 0, x_4);
lean_ctor_set(x_44, 1, x_5);
x_18 = x_44;
goto block_21;
}
}
block_21:
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_array_fset(x_17, x_11, x_18);
lean_dec(x_11);
if (lean_is_scalar(x_14)) {
 x_20 = lean_alloc_ctor(0, 1, 0);
} else {
 x_20 = x_14;
}
lean_ctor_set(x_20, 0, x_19);
return x_20;
}
}
}
else
{
uint8_t x_45; 
x_45 = !lean_is_exclusive(x_1);
if (x_45 == 0)
{
lean_object* x_46; uint8_t x_47; size_t x_54; uint8_t x_55; 
x_46 = l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3___redArg(x_1, x_4, x_5);
x_54 = 7;
x_55 = lean_usize_dec_le(x_54, x_3);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; uint8_t x_58; 
x_56 = l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(x_46);
x_57 = lean_unsigned_to_nat(4u);
x_58 = lean_nat_dec_lt(x_56, x_57);
lean_dec(x_56);
x_47 = x_58;
goto block_53;
}
else
{
x_47 = x_55;
goto block_53;
}
block_53:
{
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_48 = lean_ctor_get(x_46, 0);
lean_inc_ref(x_48);
x_49 = lean_ctor_get(x_46, 1);
lean_inc_ref(x_49);
lean_dec_ref(x_46);
x_50 = lean_unsigned_to_nat(0u);
x_51 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___closed__0;
x_52 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___redArg(x_3, x_48, x_49, x_50, x_51);
lean_dec_ref(x_49);
lean_dec_ref(x_48);
return x_52;
}
else
{
return x_46;
}
}
}
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; size_t x_70; uint8_t x_71; 
x_59 = lean_ctor_get(x_1, 0);
x_60 = lean_ctor_get(x_1, 1);
lean_inc(x_60);
lean_inc(x_59);
lean_dec(x_1);
x_61 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_61, 0, x_59);
lean_ctor_set(x_61, 1, x_60);
x_62 = l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3___redArg(x_61, x_4, x_5);
x_70 = 7;
x_71 = lean_usize_dec_le(x_70, x_3);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; uint8_t x_74; 
x_72 = l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(x_62);
x_73 = lean_unsigned_to_nat(4u);
x_74 = lean_nat_dec_lt(x_72, x_73);
lean_dec(x_72);
x_63 = x_74;
goto block_69;
}
else
{
x_63 = x_71;
goto block_69;
}
block_69:
{
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_62, 0);
lean_inc_ref(x_64);
x_65 = lean_ctor_get(x_62, 1);
lean_inc_ref(x_65);
lean_dec_ref(x_62);
x_66 = lean_unsigned_to_nat(0u);
x_67 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___closed__0;
x_68 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___redArg(x_3, x_64, x_65, x_66, x_67);
lean_dec_ref(x_65);
lean_dec_ref(x_64);
return x_68;
}
else
{
return x_62;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint64_t x_4; size_t x_5; size_t x_6; lean_object* x_7; 
x_4 = l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(x_2);
x_5 = lean_uint64_to_usize(x_4);
x_6 = 1;
x_7 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg(x_1, x_5, x_6, x_2, x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__3_spec__3___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg(x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___redArg(x_2, x_3, x_4, x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Order_getStructId_x3f___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 1);
x_6 = l_Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3___redArg(x_5, x_1, x_2);
lean_ctor_set(x_3, 1, x_6);
return x_3;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_7 = lean_ctor_get(x_3, 0);
x_8 = lean_ctor_get(x_3, 1);
x_9 = lean_ctor_get(x_3, 2);
x_10 = lean_ctor_get(x_3, 3);
x_11 = lean_ctor_get(x_3, 4);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_dec(x_3);
x_12 = l_Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3___redArg(x_8, x_1, x_2);
x_13 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_13, 0, x_7);
lean_ctor_set(x_13, 1, x_12);
lean_ctor_set(x_13, 2, x_9);
lean_ctor_set(x_13, 3, x_10);
lean_ctor_set(x_13, 4, x_11);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Order_getStructId_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_11; 
x_11 = l_Lean_Meta_Grind_getConfig___redArg(x_4);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; uint8_t x_14; 
x_13 = lean_ctor_get(x_11, 0);
x_14 = lean_ctor_get_uint8(x_13, sizeof(void*)*10 + 25);
lean_dec(x_13);
if (x_14 == 0)
{
lean_object* x_15; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_15 = lean_box(0);
lean_ctor_set(x_11, 0, x_15);
return x_11;
}
else
{
lean_object* x_16; 
lean_free_object(x_11);
x_16 = l_Lean_Meta_Grind_Order_get_x27___redArg(x_2, x_8);
if (lean_obj_tag(x_16) == 0)
{
uint8_t x_17; 
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_18 = lean_ctor_get(x_16, 0);
x_19 = lean_ctor_get(x_18, 1);
lean_inc_ref(x_19);
lean_dec(x_18);
x_20 = l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg(x_19, x_1);
if (lean_obj_tag(x_20) == 1)
{
lean_object* x_21; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
lean_dec_ref(x_20);
lean_ctor_set(x_16, 0, x_21);
return x_16;
}
else
{
lean_object* x_22; 
lean_dec(x_20);
lean_free_object(x_16);
lean_inc(x_2);
lean_inc_ref(x_1);
x_22 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
lean_dec_ref(x_22);
lean_inc(x_23);
x_24 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Order_getStructId_x3f___lam__0), 3, 2);
lean_closure_set(x_24, 0, x_1);
lean_closure_set(x_24, 1, x_23);
x_25 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
x_26 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_25, x_24, x_2);
lean_dec(x_2);
if (lean_obj_tag(x_26) == 0)
{
uint8_t x_27; 
x_27 = !lean_is_exclusive(x_26);
if (x_27 == 0)
{
lean_object* x_28; 
x_28 = lean_ctor_get(x_26, 0);
lean_dec(x_28);
lean_ctor_set(x_26, 0, x_23);
return x_26;
}
else
{
lean_object* x_29; 
lean_dec(x_26);
x_29 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_29, 0, x_23);
return x_29;
}
}
else
{
uint8_t x_30; 
lean_dec(x_23);
x_30 = !lean_is_exclusive(x_26);
if (x_30 == 0)
{
return x_26;
}
else
{
lean_object* x_31; lean_object* x_32; 
x_31 = lean_ctor_get(x_26, 0);
lean_inc(x_31);
lean_dec(x_26);
x_32 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_32, 0, x_31);
return x_32;
}
}
}
else
{
lean_dec(x_2);
lean_dec_ref(x_1);
return x_22;
}
}
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_16, 0);
lean_inc(x_33);
lean_dec(x_16);
x_34 = lean_ctor_get(x_33, 1);
lean_inc_ref(x_34);
lean_dec(x_33);
x_35 = l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg(x_34, x_1);
if (lean_obj_tag(x_35) == 1)
{
lean_object* x_36; lean_object* x_37; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
lean_dec_ref(x_35);
x_37 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_37, 0, x_36);
return x_37;
}
else
{
lean_object* x_38; 
lean_dec(x_35);
lean_inc(x_2);
lean_inc_ref(x_1);
x_38 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_39 = lean_ctor_get(x_38, 0);
lean_inc(x_39);
lean_dec_ref(x_38);
lean_inc(x_39);
x_40 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Order_getStructId_x3f___lam__0), 3, 2);
lean_closure_set(x_40, 0, x_1);
lean_closure_set(x_40, 1, x_39);
x_41 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
x_42 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_41, x_40, x_2);
lean_dec(x_2);
if (lean_obj_tag(x_42) == 0)
{
lean_object* x_43; lean_object* x_44; 
if (lean_is_exclusive(x_42)) {
 lean_ctor_release(x_42, 0);
 x_43 = x_42;
} else {
 lean_dec_ref(x_42);
 x_43 = lean_box(0);
}
if (lean_is_scalar(x_43)) {
 x_44 = lean_alloc_ctor(0, 1, 0);
} else {
 x_44 = x_43;
}
lean_ctor_set(x_44, 0, x_39);
return x_44;
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; 
lean_dec(x_39);
x_45 = lean_ctor_get(x_42, 0);
lean_inc(x_45);
if (lean_is_exclusive(x_42)) {
 lean_ctor_release(x_42, 0);
 x_46 = x_42;
} else {
 lean_dec_ref(x_42);
 x_46 = lean_box(0);
}
if (lean_is_scalar(x_46)) {
 x_47 = lean_alloc_ctor(1, 1, 0);
} else {
 x_47 = x_46;
}
lean_ctor_set(x_47, 0, x_45);
return x_47;
}
}
else
{
lean_dec(x_2);
lean_dec_ref(x_1);
return x_38;
}
}
}
}
else
{
uint8_t x_48; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_48 = !lean_is_exclusive(x_16);
if (x_48 == 0)
{
return x_16;
}
else
{
lean_object* x_49; lean_object* x_50; 
x_49 = lean_ctor_get(x_16, 0);
lean_inc(x_49);
lean_dec(x_16);
x_50 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_50, 0, x_49);
return x_50;
}
}
}
}
else
{
lean_object* x_51; uint8_t x_52; 
x_51 = lean_ctor_get(x_11, 0);
lean_inc(x_51);
lean_dec(x_11);
x_52 = lean_ctor_get_uint8(x_51, sizeof(void*)*10 + 25);
lean_dec(x_51);
if (x_52 == 0)
{
lean_object* x_53; lean_object* x_54; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_53 = lean_box(0);
x_54 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_54, 0, x_53);
return x_54;
}
else
{
lean_object* x_55; 
x_55 = l_Lean_Meta_Grind_Order_get_x27___redArg(x_2, x_8);
if (lean_obj_tag(x_55) == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_56 = lean_ctor_get(x_55, 0);
lean_inc(x_56);
if (lean_is_exclusive(x_55)) {
 lean_ctor_release(x_55, 0);
 x_57 = x_55;
} else {
 lean_dec_ref(x_55);
 x_57 = lean_box(0);
}
x_58 = lean_ctor_get(x_56, 1);
lean_inc_ref(x_58);
lean_dec(x_56);
x_59 = l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg(x_58, x_1);
if (lean_obj_tag(x_59) == 1)
{
lean_object* x_60; lean_object* x_61; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_60 = lean_ctor_get(x_59, 0);
lean_inc(x_60);
lean_dec_ref(x_59);
if (lean_is_scalar(x_57)) {
 x_61 = lean_alloc_ctor(0, 1, 0);
} else {
 x_61 = x_57;
}
lean_ctor_set(x_61, 0, x_60);
return x_61;
}
else
{
lean_object* x_62; 
lean_dec(x_59);
lean_dec(x_57);
lean_inc(x_2);
lean_inc_ref(x_1);
x_62 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_62) == 0)
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_63 = lean_ctor_get(x_62, 0);
lean_inc(x_63);
lean_dec_ref(x_62);
lean_inc(x_63);
x_64 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Order_getStructId_x3f___lam__0), 3, 2);
lean_closure_set(x_64, 0, x_1);
lean_closure_set(x_64, 1, x_63);
x_65 = l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11;
x_66 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_65, x_64, x_2);
lean_dec(x_2);
if (lean_obj_tag(x_66) == 0)
{
lean_object* x_67; lean_object* x_68; 
if (lean_is_exclusive(x_66)) {
 lean_ctor_release(x_66, 0);
 x_67 = x_66;
} else {
 lean_dec_ref(x_66);
 x_67 = lean_box(0);
}
if (lean_is_scalar(x_67)) {
 x_68 = lean_alloc_ctor(0, 1, 0);
} else {
 x_68 = x_67;
}
lean_ctor_set(x_68, 0, x_63);
return x_68;
}
else
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; 
lean_dec(x_63);
x_69 = lean_ctor_get(x_66, 0);
lean_inc(x_69);
if (lean_is_exclusive(x_66)) {
 lean_ctor_release(x_66, 0);
 x_70 = x_66;
} else {
 lean_dec_ref(x_66);
 x_70 = lean_box(0);
}
if (lean_is_scalar(x_70)) {
 x_71 = lean_alloc_ctor(1, 1, 0);
} else {
 x_71 = x_70;
}
lean_ctor_set(x_71, 0, x_69);
return x_71;
}
}
else
{
lean_dec(x_2);
lean_dec_ref(x_1);
return x_62;
}
}
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_72 = lean_ctor_get(x_55, 0);
lean_inc(x_72);
if (lean_is_exclusive(x_55)) {
 lean_ctor_release(x_55, 0);
 x_73 = x_55;
} else {
 lean_dec_ref(x_55);
 x_73 = lean_box(0);
}
if (lean_is_scalar(x_73)) {
 x_74 = lean_alloc_ctor(1, 1, 0);
} else {
 x_74 = x_73;
}
lean_ctor_set(x_74, 0, x_72);
return x_74;
}
}
}
}
else
{
uint8_t x_75; 
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_75 = !lean_is_exclusive(x_11);
if (x_75 == 0)
{
return x_11;
}
else
{
lean_object* x_76; lean_object* x_77; 
x_76 = lean_ctor_get(x_11, 0);
lean_inc(x_76);
lean_dec(x_11);
x_77 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_77, 0, x_76);
return x_77;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0(x_1, x_2, x_3);
lean_dec_ref(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec_ref(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; lean_object* x_6; 
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0(x_1, x_2, x_5, x_4);
lean_dec_ref(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_8 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_9 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3(x_1, x_2, x_7, x_8, x_5, x_6);
return x_9;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
size_t x_8; lean_object* x_9; 
x_8 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_9 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
lean_dec_ref(x_4);
lean_dec_ref(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0___redArg(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_PersistentHashMap_findAtAux___at___00Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4);
lean_dec_ref(x_4);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
size_t x_6; lean_object* x_7; 
x_6 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_7 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3_spec__5___redArg(x_6, x_2, x_3, x_4, x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; lean_object* x_5; 
x_4 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_5 = l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg(x_1, x_4, x_3);
lean_dec_ref(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Order_getStructId_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Lean_Meta_Grind_Order_getStructId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
size_t x_6; size_t x_7; lean_object* x_8; 
x_6 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_7 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_8 = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg(x_1, x_6, x_7, x_4, x_5);
return x_8;
}
}
lean_object* initialize_Lean_Meta_Tactic_Grind_Order_Types(uint8_t builtin);
lean_object* initialize_Lean_Meta_Tactic_Grind_OrderInsts(uint8_t builtin);
lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId(uint8_t builtin);
lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommRingM(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Order_StructId(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Meta_Tactic_Grind_Order_Types(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_Tactic_Grind_OrderInsts(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommRingM(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__2();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__2);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__1();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__1);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__0();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__0);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__3();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_mkOrderedRingInst_x3f___redArg___closed__3);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__0();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__0);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__1();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__1);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__2();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__2);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__3);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__4();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__4);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__5);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__6();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__6);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__7();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__7);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__8);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__9();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__9);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__10);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__11);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__12();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__12);
l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13();
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Order_StructId_0__Lean_Meta_Grind_Order_getStructId_x3f_go_x3f___closed__13);
l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__0();
l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at___00Lean_PersistentHashMap_find_x3f___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__0_spec__0___redArg___closed__1();
l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___closed__0 = _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___closed__0();
lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_Meta_Grind_Order_getStructId_x3f_spec__3_spec__3___redArg___closed__0);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
